zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    【POJ3069】Saruman's Army
    【POJ2453】An Easy Problem
    【POJ2386】Lake Counting
    【POJ2251】Dungeon Master
    【POJ1664】放苹果
    【基础】枚举学习笔记
    算法时空复杂度【OI缩水版】
    【POJ2018】Best Cow Fences
    【POJ3889】Fractal Streets(分形图)
    【BZOJ2296】随机种子(构造)
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/14929106.html
Copyright © 2011-2022 走看看