http://guoyaxu.iteye.com/blog/102694 several ways to view Linux version information:
- Uname-a
- Cat/proc/version
- Cat/etc/issue
- Lsb_release-a
Detailed lsb_release-a
- log on to the server to perform lsb_release-a to list all version information, for example:
- [[email protected] ~]# lsb_release -a& nbsp;
- lsb version: 1.3
- Distributor id : redhatenterpriseas
- description: red hat enterprise linux as release 4 (nahant update 1)
- Release: 4
- codename: nahantupdate1
- [email protected] ~]#
This command applies to all Linux, including Redhat, SuSE, and Debian distributions.
- Log in to the Linux execution Cat/etc/redhat-release, as follows:
- [Email protected] ~]# cat/etc/redhat-release
- Red Hat Enterprise Linux as Release 4 (Nahant Update 1)
- [Email protected] ~]#
In this way, you can see the specific version number directly, such as AS4 Update 1
- Log on to Linux to perform rpm-q redhat-release, such as the following
- [Email protected] ~]# rpm-q redhat-release
- redhat-release-4as-2.4
- [Email protected] ~]#
In this way, you can see a so-called release number, such as the above example is 2.4
There is a certain correspondence between the release number and the actual version, as follows:
- Redhat-release-3as-1-Redhat Enterprise Linux as 3
- redhat-release-3as-7.4-Redhat Enterprise Linux as 3 Update 4
- Redhat-release-4as-2-Redhat Enterprise Linux as 4
- redhat-release-4as-2.4-Redhat Enterprise Linux as 4 Update 1
- Redhat-release-4as-3-Redhat Enterprise Linux as 4 Update 2
- redhat-release-4as-4.1-Redhat Enterprise Linux as 4 Update 3
- redhat-release-4as-5.5-Redhat Enterprise Linux as 4 Update 4
Note: The 2nd, 32 methods are only valid for Redhat Linux
More articles: Linux view kernel version, system version, System bits (32OR64)-http://nameyjj.blog.51cto.com/788669/557424
View Linux Version information