【CentOS】查看CentOS的内核版本号及Linux版本号

查看Linux内核版本号(方法1)

[sqs@bogon tmp]$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

查看Linux内核版本号(方法2)

[sqs@bogon tmp]$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:    CentOS
Description:    CentOS Linux release 7.6.1810 (Core)
Release:    7.6.1810
Codename:    Core

查看Linux系统版本号

[sqs@bogon tmp]$ uname -a
Linux bogon 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

查看Linux系统版本号及RedHat版本

[sqs@bogon tmp]$ cat /proc/version
Linux version 3.10.0-957.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 8 23:39:32 UTC 2018

相关推荐