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
  • 相关阅读:
    WebStorm 2017.1.2 汉化破解
    gulp实时刷新页面
    图片转base64
    swiper使用案例一
    js生成GUID
    css实现0.5像素
    mac上搭建appium+IOS自动化测试环境(二)
    6. 使用antd pro构建web页面
    5. 使用Flask蓝图(blueprint)
    4. 为HelloWorld添加日志
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/14929106.html
Copyright © 2011-2022 走看看