分类: LINUX
2012-03-12 13:51:20
查看ubuntu系统版本信息
方法一:cat /etc/issue
返回结果:
Ubuntu 11.04 \n \l
方法二:cat /proc/version
返回结果:
Linux version 2.6.38-8-generic (buildd@vernadsky) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011
方法三:uname -a
返回结果:
Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux
方法四:lsb_release -a
返回结果:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
方法五:cat /etc/lsb-release
返回结果:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION=”Ubuntu 11.04″
现在清楚了,装的是11.04版本的