在Linux下檢視系統版本資訊命令總結

weixin_34321977發表於2016-03-05


每次在想檢視系統是多少位的時候。總是記不清究竟用哪個命令。所以做個總結。


vonzhou@de16-C6100:~$ lsb_release -a
No LSB modules are available.
Distributor ID:     Ubuntu
Description:     Ubuntu 12.04.4 LTS
Release:     12.04
Codename:     precise
vonzhou@de16-C6100:~$ uname -a
Linux de16-C6100 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
vonzhou@de16-C6100:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"
vonzhou@de16-C6100:~$ cat /etc/issue
Ubuntu 12.04.4 LTS \n \l

vonzhou@de16-C6100:~$ cat /proc/version
Linux version 3.11.0-15-generic (buildd@allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014
vonzhou@de16-C6100:~$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="12.04.4 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.4 LTS)"
VERSION_ID="12.04"

相關文章