Summary of commands for query release and kernel versions in Linux systems

Source: Internet
Author: User
Tags centos

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.