歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

如何查看linux系統版本號

以下命令可以查看:
[root@linuxeye ~]## lsb_release -a  (yum -y install redhat-lsb)
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Release:        5.4
Codename:       Tikanga

uname命令適用於所有的linux,包括Redhat、SuSE、Debian等發行版。
[root@linuxeye ~]# uname
Linux

[root@linuxeye ~]# uname -r
2.6.18-164.el5PAE

以下二種方法適用於RedHat,CentOS
[root@linuxeye ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

[root@linuxeye ~]# rpm -q redhat-release
redhat-release-5Server-5.4.0.3
Copyright © Linux教程網 All Rights Reserved