• 周五. 3月 1st, 2024

    Linux CentOS查看操作系统版本信息

    root

    3月 8, 2020 #centos, #linux

    一、uname -a

    # uname -a
    Linux VM_0_3_centos 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

    二、cat /proc/version

    # cat /proc/version
    Linux version 3.10.0-957.21.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Tue Jun 18 16:35:19 UTC 2019

    一和二显示结果都是linux内核的版本号,只是方法二中多了redhat信息

    三、cat /etc/redhat-release

    # cat /etc/redhat-release
    CentOS Linux release 7.6.1810 (Core)

    系统安装时CentOS默认的发行版信息

    root

    发表回复