查看linux系统版本命令:
[ysong@IDC ~]$uname -a
Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[ysong@IDC ~]$cat /etc/issue
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel \r on an \m
[ysong@IDC ~]$cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[ysong@IDC ~]$cat /proc/version
Linux version 2.6.18-92.el5 (brewbuilder@ls20-bc2-13.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:16:15 EDT 2008
[ysong@IDC ~]$uname -r
2.6.18-92.el5
[ysong@IDC ~]$ lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release: 5.2
Codename: Tikanga
[ysong@IDC ~]$cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[ysong@IDC ~]$rpm -q redhat-release
redhat-release-5Server-5.2.0.4