View Linux Version information

Source: Internet
Author: User

http://guoyaxu.iteye.com/blog/102694 several ways to view Linux version information:
    1. Uname-a
    2. Cat/proc/version
    3. Cat/etc/issue
    4. Lsb_release-a
Detailed lsb_release-a
  1. log on to the server to perform lsb_release-a to list all version information, for example:
    1. [[email protected] ~]# lsb_release -a& nbsp;   
    2. lsb version: 1.3    
    3. Distributor id :  redhatenterpriseas    
    4. description: red hat enterprise  linux as release 4  (nahant update 1)     
    5. Release:  4    
    6. codename: nahantupdate1    
    7. [email  protected] ~]#  
    This command applies to all Linux, including Redhat, SuSE, and Debian distributions.
  2. Log in to the Linux execution Cat/etc/redhat-release, as follows:
    1. [Email protected] ~]# cat/etc/redhat-release
    2. Red Hat Enterprise Linux as Release 4 (Nahant Update 1)
    3. [Email protected] ~]#
    In this way, you can see the specific version number directly, such as AS4 Update 1
  3. Log on to Linux to perform rpm-q redhat-release, such as the following
      1. [Email protected] ~]# rpm-q redhat-release
      2. redhat-release-4as-2.4
      3. [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:
      1. Redhat-release-3as-1-Redhat Enterprise Linux as 3
      2. redhat-release-3as-7.4-Redhat Enterprise Linux as 3 Update 4
      3. Redhat-release-4as-2-Redhat Enterprise Linux as 4
      4. redhat-release-4as-2.4-Redhat Enterprise Linux as 4 Update 1
      5. Redhat-release-4as-3-Redhat Enterprise Linux as 4 Update 2
      6. redhat-release-4as-4.1-Redhat Enterprise Linux as 4 Update 3
      7. 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

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.