查看linux系统版本命令:
 
复制代码 代码示例:
[root@jbxue ~]$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 
#使用/etc/issue文件,显示linux系统版本信息。
[root@jbxue ~]$cat /etc/issue  
Red Hat Enterprise Linux Server release 5.2 (Tikanga)  
Kernel r on an m 
#借助/etc/redhat-release文件,显示linux系统版本信息。
[root@jbxue ~]$cat /etc/redhat-release   
Red Hat Enterprise Linux Server release 5.2 (Tikanga) 
 
借助/proc/version文件,显示linux系统版本信息。
 
复制代码 代码示例:
[root@jbxue ~]$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  
  
[root@jbxue ~]$uname -r  
2.6.18-92.el5  
  
[root@jbxue ~]$ 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  
  
[root@jbxue ~]$cat /etc/redhat-release  
Red Hat Enterprise Linux Server release 5.2 (Tikanga)  
  
[root@jbxue ~]$rpm -q redhat-release  
redhat-release-5Server-5.2.0.4