linux系统中查看系统内核、发行版本信息

以centos7.9为例。

1、

[root@centos7 test]# uname -a
Linux centos7 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

2、

[root@centos7 test]# cat /proc/version
Linux version 3.10.0-1160.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Mon Oct 19 16:18:59 UTC 2020

 

3、

[root@centos7 test]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

 

4、

[root@centos7 test]# hostnamectl
   Static hostname: centos7
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 800a83c5a11f46b5bcfb4fd5700d3f0e
           Boot ID: 3a272bb124c14557af77ac98fa18d3ff
    Virtualization: vmware
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-1160.el7.x86_64
      Architecture: x86-64

 

5、

[root@centos7 test]# 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.9.2009 (Core)
Release:        7.9.2009
Codename:       Core

 

posted @ 2021-06-24 23:35  小鲨鱼2018  阅读(1229)  评论(0编辑  收藏  举报