1、查看Linux系统版本的命令
cat /etc/redhat-release,此方法只适用于Redhat系的Linux:
[root@vmnode3 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
2、查看Linux内核版本命令:
cat /proc/version
[root@vmnode3 ~]# cat /proc/version
Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015