How to view the Linux version number (kernel version number and release version number)

Source: Internet
Author: User
For details about how to view the Linux version number (kernel version number and release version number)-Linux general technology-Linux technology and application information, see the following. First, we need to distinguish the kernel version number from the release version number.

Because all linux systems use the kernel from kernel.org as the basis of the release version, the kernel version can reflect the new version and old version.

The release version is defined by each publisher and cannot be compared with the versions of other releases. For example, SuSE 10.0 cannot be compared with Red Hat 9.0, nor can it be comparable to Ubuntu 7.04. The release version number is only the number of each vendor to differentiate their own products.

To view the kernel version number, follow these steps:
Print a terminal and enter the command uname-r

To view the release version number, follow these steps:
Run the command to find the issue file or release file under the/etc directory. Ls/etc/* issue * Or ls/etc/* release *

Then you can directly view the file content using the cat command to know the version number:

For example, the result of cat/etc/lsb-release on ubuntu linux 7.10 is:
DISTRIB_ID = Ubuntu
DISTRIB_RELEASE = 7.10
DISTRIB_CODENAME = gutsy
DISTRIB_DESCRIPTION = "Ubuntu 7.10"
The version is 7.10, And the alias is gutsy.

In ubuntu linux 7.04, we can see the following:
DISTRIB_ID = Ubuntu
DISTRIB_RELEASE = 7.04
DISTRIB_CODENAME = feisty
DISTRIB_DESCRIPTION = "Ubuntu 7.04"

You can view other release versions, such as Debian and Red Hat. For example, you can view the release version In Debian by using cat/etc/issue.
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.