1. View the kernel version command:
1) [[email protected] ~]# cat/proc/version
Linux version 2.6.9-22.elsmp ([email protected]) (GCC version 3.4.4 20050721
3.4.4-2)) #1 SMP Mon Sep 18:00:54 EDT 2005
2) [[email protected] ~]# uname-a
linux q1test01 2.6.9-22.elsmp #1 SMP Mon Sep 18:00:54 EDT 2005 x86_64 x86_64 x86_64 gnu/Linux
3) [[email protected] ~]# uname-r
2.6.9-22.elsmp
2. View Linux version: Network management Network www_bitscn_com
1) Log in to the server to perform lsb_release-a and list all version information, for example: Network Management Alliance [email protected]
[Email protected] ~]# [[email protected] ~]# lsb_release-a
LSB Version:: core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-
Ia32:graphics-3.0-noarch
Distributor Id:redhatenterpriseas
description:red Hat Enterprise Linux as Release 4 (Nahant Update 2)
Release:4
Codename:nahantupdate2
Note: This command applies to all Linux, including Redhat, SuSE, Debian, and other distributions.
2) Log in to the Linux execution Cat/etc/issue, as follows:
[Email protected] ~]# cat/etc/issue
Red Hat Enterprise Linux as Release 4 (Nahant Update 2)
Kernel \ r \m Network Management Alliance [email protected]
3) Log in to the Linux execution cat/etc/redhat-release as follows: Network Management Alliance bitscn_com
[Email protected] ~]# cat/etc/redhat-release
Red Hat Enterprise Linux as Release 4 (Nahant Update 2)
Note: This way you can see the specific version number, such as AS4 Update 1 network www_bitscn_com
4) Log in to the Linux execution Rpm-q redhat-release, for example as follows:
[Email protected] ~]# rpm-q redhat-release
Redhat-release-4as-3
Note: A so-called release number can be seen in this way, such as the above example is 3
There is a certain correspondence between the release number and the actual version, as follows:
Redhat-release-3as-1, Redhat EnterpriseLinuxAs 3
redhat-release-3as-7.4, Redhat EnterpriseLinuxAs 3 Update 4
Redhat-release-4as-2, Redhat EnterpriseLinuxAs 4
redhat-release-4as-2.4, Redhat EnterpriseLinuxAs 4 Update 1
Redhat-release-4as-3, Redhat EnterpriseLinuxAs 4 Update 2
redhat-release-4as-4.1, Redhat EnterpriseLinuxAs 4 Update 3
redhat-release-4as-5.5, Redhat EnterpriseLinuxAs 4 Update 4
Another: 3rd), 4) Two methods only for RedhatLinuxEffective.