Home » Linux » Linux view system version

Linux view system version

often to see the server system version information, a two fine, the key is to install the N and others, Taiwan, so you have to look at, because some of the software configuration in different versions differ, you feel no trouble, then from I back and sometimes! System, different functions are not the same! Save a lot of things, the road don't go to hell! You are repeating cars! The wheels made out of

!





  1. method 1:


    uses uname -a


    , such as:


    Linux, VM_1_157_centos, 2.6.32-431.el6.x86_64, #1, SMP, Fri, Nov, 22, 03:15:09, UTC,, x86_64, GNU/Linux
    , x86_64, x86_64
    [root@VM_1_157_centos
    ~]#



  2. method two: (clear, recommended)


    uses cat /etc/issue


    , such as:


    [root@VM_1_157_centos cat /etc/issue
    ~]#
    CentOS release 6.7 (Final)

    Kernel, R, on, an, m



    [root@VM_1_157_centos
    ~]#



  3. method three: (some systems have, no, need to install themselves)


    uses lsb_release -a (not on top of centos6.5 system), but another 7 has


    Such as:

    [root@iZ235ubpeeuZ lsb_release -a
    ~]#
    LSB Version:: core-4.1-amd64:core-4.1-noarch

    Distributor ID: CentOS

    Description:, CentOS, Linux, release, 7.1.1503 (Core)

    Release: 7.1.1503

    Codename: Core

    [root@iZ235ubpeeuZ
    ~]#





  4. method four:


    uses cat /proc/version


    , such as:


    [root@VM_1_157_centos cat /proc/version
    ~]#
    Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (GCC version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)) #1, SMP, Fri, Nov, 22, 03:15:09, UTC, 2013

    [root@VM_1_157_centos
    ~]#




Latest