查看centos系统版本

查看centos系统版本命令

[oy@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[oy@localhost ~]$ cat /proc/version
Linux version 3.10.0-1062.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Wed Aug 7 18:08:02 UTC 2019
[oy@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[oy@localhost ~]$ uname -r
3.10.0-1062.el7.x86_64