centos用什么命令可查版本号-LMLPHP

本教程操作环境:centos6.5系统、thinkpad t480电脑。

查看centos版本

cat /etc/issue

[root@localhost ~]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
登录后复制

cat /etc/redhat-release

[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
登录后复制

查看内核linux版本

cat /proc/version

[root@localhost ~]# cat /proc/version
Linux version 2.6.32-754.15.3.el6.x86_64 ([email protected]) (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 -a
Linux 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 -r
2.6.32-754.15.3.el6.x86_64
登录后复制

推荐:《centos使用教程

以上就是centos用什么命令可查版本号的详细内容,更多请关注Work网其它相关文章!

09-17 12:15