查看linux系统版本命令:
[root@ahlinux~]$uname -a
#使用/etc/issue文件,显示linux系统版本信息。
#借助/etc/redhat-release文件,显示linux系统版本信息。
借助/proc/version文件,显示linux系统版本信息。 [root@ahlinux~]$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@ahlinux~]$uname -r 2.6.18-92.el5 [root@ahlinux~]$ 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 (责任编辑:IT) |