Understanding the version number of a Linux distribution is a very important thing, most software requires a system version, and the release version number does not match the software. The software will not be installed or can not be used. Here's a collection of popular Linux distribution version number query methods. With this article, the boss is no longer worried about me wrong software.
First, release version number query
1.Debian version query:
The code is as follows:
# cat/etc/debian_version
5.0.7
# cat/etc/issue
Debian Gnu/linux 5.0 \ \l
2.Ubuntu version query:
Note: The proc directory records the current system running a variety of data, version records of versions of information can be seen directly through cat.
First Kind
To use the command:
The code is as follows:
Cat/proc/version
View
Proc Directory Records of the current system running a variety of data, version record versions of information can be seen directly through the cat, you can see my version of the GCC.
Second Kind
To use the command:
The code is as follows:
Uname-a
View
As shown in the figure above, your kernel version
Third Kind
To use the command:
The code is as follows:
Lsb_release-a
View
3.CentOS version query:
The code is as follows:
# Cat/etc/*-release
CentOS Release 6.4 (Final)
CentOS Release 6.4 (Final)
CentOS Release 6.4 (Final)
4.RedHat version query:
The code is as follows:
# Cat/etc/redhat-release
Red Hat Enterprise Linux Server Release 6.0 (Santiago)
5.Fedora version query:
The code is as follows:
$ cat/etc/fedora-release
Fedora Release (Laughlin)
6.OpenSuSE version query:
The code is as follows:
$ cat/etc/suse-release
OpenSUSE 12.1 (x86_64)
VERSION = 12.1
codename = Asparagus
Second, query the kernel version
The code is as follows:
# Uname-r
2.6.32-358.14.1.el6.x86_64
# cat/proc/version
Linux version 2.6.32-358.14.1.el6.x86_64 (mockbuild@c6b10.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4 .7-3) (GCC) #1 SMP Tue 23:51:20 UTC 2013