uname -a
查看linux内核的版本号。
[root@i-dbb1f0ff ~]# uname -a
Linux i-dbb1f0ff 3.10.0-514.el7.x86_64
#1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/version
查看linux内核的版本号和RedHat信息。
[root@i-dbb1f0ff ~]# cat /proc/version
Linux version 3.10.0-514.el7.x86_64 (builder@kbuilder.dev.centos.org)
(gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) )
#1 SMP Tue Nov 22 16:42:41 UTC 2016
cat /etc/redhat-release
查看系统安装时centos默认的发行版本信息。
[root@i-dbb1f0ff ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
cat /etc/issue
查看系统安装时centos默认的发行版本信息,不过貌似并没有显示出发行版本信息。
[root@i-dbb1f0ff ~]# cat /etc/issue
\S
Kernel \r on an \m