How to view the linux version and the linux version

Source: Internet
Author: User

How to view the linux version and the linux version

1. Run the following command to view the kernel version:

1) [root @ q1test01 ~] # Cat/proc/version
Linux version 2.6.9-22. ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721

3.4.4-2) #1 SMP Mon Sep 19 18:00:54 EDT 2005

2) [root @ q1test01 ~] # Uname-
Linux q1test01 2.6.9-22. ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

3) [root @ q1test01 ~] # Uname-r
2.6.9-22. ELsmp

 


2. view the linux version: www_bitscn_com

1) log on to the server and execute lsb_release-a to list all version information, such as: Network Management Alliance bitsCN @ com

[Root@3.5.5Biz-46 ~] # [Root @ q1test01 ~] # Lsb_release-
LSB Version: core-3.0-amd64: core-3.0-ia32: core-3.0-noarch: 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 releases, including Redhat, SuSE, and Debian.

 

2) log on to linux and run cat/etc/issue, for example:

[Root @ q1test01 ~] # Cat/etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Kernel \ r on an \ m Network Management Alliance bitsCN @ com

3) log on to linux and run cat/etc/redhat-release, for example, the Network Management Alliance bitsCN_com.

[Root @ q1test01 ~] # Cat/etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Note: in this way, you can see the specific version number, such as AS4 Update 1 Network Administrator www_bitscn_com.

4) log on to linux and execute rpm-q redhat-release, for example:

[Root @ q1test01 ~] # Rpm-q redhat-release
Redhat-release-4AS-3
Note: in this way, you can see a so-called release number. For example, the above example is 3.
There is a certain correspondence between the release number and the actual version, as shown below:
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
Other methods: 3rd) and 4) are only valid for Redhat Linux.


How does one check which version is installed in linux?

Uname-r view the kernel version
Uname-a view system version
Cat/etc/issue view version information

How does one check which version is installed in linux?

Uname-r view the kernel version
Uname-a view system version
Cat/etc/issue view version information

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.