Linux版本查看

工作中常会涉及到查看所用Linux系统版本的情况,该如何查看呢,可通过以下几种方式:

    方式一:$cat /etc/issue

        执行结果:Ubuntu 14.04.1 LTS \n \l


    方式二:$uname -a

        执行结果:Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


    方式三:$cat|more /proc/version

        执行结果:Linux version 3.13.0-32-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014


    方式四:$lsb_realse -a

        执行结果:

            No LSB modules are available.

            Distributor ID: Ubuntu

            Description: Ubuntu 14.04.1 LTS

            Release: 14.04

            Codename: trusty

    PS:  lsb(Linux Standard Base简写) 

    

    

    

    

你可能感兴趣的:(Linux版本查看)