网站推广.NET

网站推广.NET

centos用什么命令可查版本号

来源:互联网

本教程操作环境: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查看系统版本命令