查看全部信息:
[zhangsan@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
查看linux内核信息:
[zhangsan@localhost ~]$ uname -r
3.10.0-693.el7.x86_64
查看linux版本号:
[zhangsan@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)