1. 查看LINUX内核版本命令

[root@localhost proc]# cat /proc/version
Linux version 2.6.18-194.el5 (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:35 EDT 2010

[root@localhost proc]# uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux

2. 查看LINUX版本

lsb_release -a

由于我的机器上没有安装 lsb 所以就不演示了。

[root@localhost proc]# cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m