查看Ubuntu版本

一、查看Ubuntu版本号

 方法一

root@wiki:~# cat /etc/issue
Ubuntu 14.04.1 LTS \n \l

方法二

root@wiki:~# sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

方法三

root@wiki:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"

二、查看linux版本

方法一

root@wiki:~# cat /proc/version
Linux version 3.13.0-45-generic (buildd@phianna) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015

方法二

root@wiki:~# uname -a
Linux wiki 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

仅查看内核版本:

root@wiki:~# uname -r
3.13.0-45-generic

 推荐链接

UbuntuSkills

posted @ 2015-01-22 09:57  starof  阅读(1086)  评论(0编辑  收藏  举报