Ubuntu下查看Linux内核版本和系统版本

1.查看内核版本

  • zengdx@ubuntu:~$ cat /proc/version
    Linux version 3.19.0-25-generic (buildd@lgw01-20) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015

  • zengdx@ubuntu:~$ uname -a
    Linux ubuntu 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

  • zengdx@ubuntu:~$ uname -r
    3.19.0-25-generic

2.查看系统版本

  • zengdx@ubuntu:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 14.04.3 LTS
    Release:        14.04
    Codename:       trusty

  • zengdx@ubuntu:~$ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.04
    DISTRIB_CODENAME=trusty
    DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

  • zengdx@ubuntu:~$ cat /etc/issue
    Ubuntu 14.04.3 LTS \n \l

你可能感兴趣的:(Linux&Android)