原文地址:http://blog.chinaunix.net/uid-26527046-id-3718311.html
查看ubuntu的发行版本
1. cat /etc/issue
yutao@yutao:~$ cat /etc/issue
Ubuntu 10.04.4 LTS \n \l
2. lsb_release -a
yutao@yutao:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
3. cat /etc/lsb-release
yutao@yutao:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"
查看kernel版本
1. cat /proc/version
Linux version 2.6.32.61 (yutao@yutao) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #1 SMP Thu Feb 13 10:19:04 CST 2014
2. uname -r/-a
yutao@yutao:~$ uname -r
2.6.32.61
yutao@yutao:~$ uname -a
Linux yutao 2.6.32.61 #1 SMP Thu Feb 13 10:19:04 CST 2014 x86_64 GNU/Linux
2.6.32.61
yutao@yutao:~$ uname -a
Linux yutao 2.6.32.61 #1 SMP Thu Feb 13 10:19:04 CST 2014 x86_64 GNU/Linux