本文摘自PHP中文网,作者V,侵删。

1、使用lsb_release -a命令查看
1 2 3 4 5 6 7 8 9 | [root@sky9896sky]# lsb_release -a
bash:lsb_release: command not found
[root@sky9896sky]#yum install lsb ?Cy
[root@sky9896sky]# lsb_release -a
LSBVersion:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
DistributorID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final
|
2、使用cat /etc/redhat-release命令查看
1 2 | [root@sky9896 sky]# cat /etc/redhat-release
CentOSrelease 6.7 (Final)
|
推荐教程:centos教程
以上就是centos如何查看版本号的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
如何使用vagrant搭建CentOS虚拟机
如何清理CentOS垃圾
如何在CentOS 7.3下安装graylog2全程指导
如何解决CentOS启动dhcp失败的问题
CentOS yum无法使用怎么解决
在CentOS系统下包更新的命令
如何查看CentOS系统版本是32位还是64位
CentOS磁盘空间不足怎么办
CentOS如何安装pip
tomcat在CentOS下出现中文乱码怎么办
更多相关阅读请进入《CentOS》频道 >>
转载请注明出处:木庄网络博客 » centos如何查看版本号