查看linux版本

查看LInux内核版本:

[root@localhost ~]# uname
Linux

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-238.el5 #1 SMP Sun Dec 19 14:24:47 EST 2010 i686 athlon i386 GNU/Linux

[root@localhost ~]# uname -r
2.6.18-238.el5
[root@localhost ~]#
 

[root@localhost ~]# cat /proc/version

Linux version 2.6.18-238.el5 ([email protected]) (gcc


version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Sun Dec 19 14:24:47 EST 2010


 

发行版本:
[root@localhost ~]# 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@localhost ~]#
 

[root@localhost ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Kernel \r on an \m

适用于redhat版本

[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
[root@localhost ~]# rpm -q redhat-release
redhat-release-5Server-5.6.0.3
 

你可能感兴趣的:(linux,职场,版本,休闲,linux版本)