輸入"cat /proc/version",顯示正在運行的內(nèi)核版本。
輸入"cat /etc/issue", 顯示的是發(fā)行版本信息
lsb_release -a (適用于所有的linux,包括Redhat、SuSE、Debian等發(fā)行版,但是在debian下要安裝lsb)
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SZV1000123502:~ # uname -a
Linux SZV1000123502 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
SZV1000123502:~ # cat /proc/version
Linux version 3.0.76-0.11-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990)
SZV1000123502:~ # cat /etc/issue
Welcome to SUSE Linux Enterprise Server 11 SP3 (x86_64) - Kernel r (l).
SZV1000123502:~ # lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 11 (x86_64)