查看Linux版本信息
[root@vm_linux_jre ~]# lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Release: 5.6
Codename: Tikanga
[root@vm_linux_jre ~]# uname -a
Linux vm_linux_jre 2.6.18-238.el5 #1 SMP Sun Dec 19 14:24:47 EST 2010 i686 i686 i386 GNU/Linux
[root@vm_linux_jre ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Kernel \r on an \m
对于红帽子linux,还可以使用下面命令:
[root@SonarServer1 user0]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)