想要查看一下现在的ubuntu版本号,下面总结了几种方法:
查看linux版本
方法四:
cat /proc/version
方法五:
uname -a
返回结果:
方法六: 查看内核版本
uname -r
返回结果:
方法一:
cat /etc/issue
返回结果:
方法二:
sudo lsb_release -a
返回结果:
方法三:
cat /etc/lsb_release
返回结果:
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-15-generic (buildd@panlong) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #61-Ubuntu SMP Tue Jun 12 19:15:11 UTC 2012
uname -a
返回结果:
Linux mupeng-Rev-1-0 2.6.38-15-generic #61-Ubuntu SMP Tue Jun 12 19:15:11 UTC 2012 i686 i686 i386 GNU/Linux
uname -r
返回结果:
2.6.38-15-generic