您好,欢迎访问一九零五行业门户网

centos用什么命令可查版本号

查版本号的命令:1、“cat /etc/issue”或“cat /etc/redhat-release”,可输出centos版本号;2、“cat /proc/version”、“uname -a”或“uname -r”,可输出内核版本号。
本教程操作环境:centos6.5系统、thinkpad t480电脑。
查看centos版本cat /etc/issue
[root@localhost ~]# cat /etc/issuecentos release 6.5 (final)kernel \r on an \m
cat /etc/redhat-release
[root@localhost ~]# cat /etc/redhat-releasecentos release 6.5 (final)
查看内核linux版本cat /proc/version
[root@localhost ~]# cat /proc/versionlinux version 2.6.32-754.15.3.el6.x86_64 (mockbuild@x86-01.bsys.centos.org) (gcc version 4.4.7 20120313 (red hat 4.4.7-23) (gcc) ) #1 smp tue jun 18 16:25:32 utc 2019
uname -a
[root@localhost ~]# uname -alinux localhost.localdomain 2.6.32-754.15.3.el6.x86_64 #1 smp tue jun 18 16:25:32 utc 2019 x86_64 x86_64 x86_64 gnu/linux
uname -r
[root@localhost ~]# uname -r2.6.32-754.15.3.el6.x86_64
推荐:《centos使用教程》
以上就是centos用什么命令可查版本号的详细内容。
其它类似信息

推荐信息