查看ubuntu版本

方法一:

cat /etc/issue

返回结果:

Ubuntu 11.04 \n \l

方法二:

sudo 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"

查看linux版本:

方法四:

cat /proc/version

返回结果:
Linux version 2.6.38-11-generic (buildd@allspice) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011

方法五:

uname -a

返回结果:
Linux zhangxiaonan-virtual-machine 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

方法六:仅仅查看内核版本

uname -r

返回结果:
2.6.38-11-generic

你可能感兴趣的:(ubuntu)