美文网首页
CentOS 系统查看版本

CentOS 系统查看版本

作者: jiaxiaolei | 来源:发表于2017-08-29 20:48 被阅读10次

    查看版本

    方法1:

    [root@jia-001 ~]$ uname -a
    Linux jia-001 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    
    [root@donica ~]# uname -a
    Linux donica.cn 2.6.18-308.el5PAE #1 SMP Tue Feb 21 20:46:05 EST 2012 i686 i686 i386 GNU/Linux
    

    方法2:

    [root@donica ~]# lsb_release -a
    LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
    Distributor ID: CentOS
    Description:    CentOS release 5.11 (Final)
    Release:    5.11
    Codename:   Final
    

    方法3:

    [root@donica ~]# cat /etc/redhat-release
    CentOS release 5.11 (Final)
    

    方法4:

    $ cat /etc/redhat-release
    CentOS Linux release 7.1.1503 (Core)
    

    方法5:

    [root@donica ~]# cat /etc/issue
    CentOS release 5.11 (Final)
    Kernel \r on an \m
    
    

    相关文章

      网友评论

          本文标题:CentOS 系统查看版本

          本文链接:https://www.haomeiwen.com/subject/xwgthttx.html