View Linux system version commands
First, view Linux Kernel version Command
1.cat/proc/version
[Email protected] ~]# cat/proc/version
Linux version 2.6.32-504.el6.i686 ([email protected]) (GCC version 4.4.7 20120313
(Red Hat 4.4.7-11) (GCC)) #1 SMP Wed Oct 03:02:07 UTC 2014
2.uname-a
[Email protected] ~]# uname-a
Linux Localhost.localdomain 2.6.32-504.el6.i686 #1 SMP Wed Oct 03:02:07 UTC i686 i686 i386 gnu/linux
3.uname-r
[Email protected] ~]# uname-r
2.6.32-504.el6.i686
Second, view Linux system version the command
1 " Cat/etc/redhat-release , this method is only suitable for Redhat system Linux:
[Email protected] ~]# cat/etc/redhat-release
CentOS Release 6.6 (Final)
2" cat/etc/issue , this command also applies to all Linux distributions.
[Email protected] ~]# cat/etc/issue
CentOS Release 6.6 (Final)
Kernel \ r on an \m
3 "
There are user execution results with Red Hat installed:
① Span style= "Font-family:arial;color:rgb (51,51,51); Font-size:14px;background:rgb (255,255,255);" > log in to linux execute rpm-q redhat-release , For example :
[[email protected] someone ~]# rpm-q redhat-release
redhat-release-5server-5.6.0.3
② log on to the server to perform lsb_release-a , You can list all version information , such as :
[[Email protected]someone ~]# lsb_ Release-a
LSB Version:< Span style= "font-family:arial;" > :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch: GRAPHICS-4.0-AMD64:GRAPHICS-4.0-IA32:GRAPHICS-4.0-NOARCH:PRINTING-4.0-AMD64:PRINTING-4.0-IA32: Printing-4.0-noarch
Distributor Id:redhatenterpriseas
Description: red Hat Enterprise Linux as Release 4 (Nahant Update 4)
Release: 4
Codename:nahantupdate4
This command applies to all Linux distributions, including Redhat,SuSE, Debian..... and other distributions.
I don't have the Red Hat effect installed. :
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7E/A6/wKiom1cGD46AeUQaAABEs7L9p6M668.jpg "title=" 32.JPG "alt=" Wkiom1cgd46aeuqaaabes7l9p6m668.jpg "/>
View Linux System version commands