[Linux Kernel] View the CentOS version method

Source: Internet
Author: User

View the CentOS version method with the following commands to view:
  
 
  1. # lsb_release -a
  2. lsb version :     : core - 3.1 - ia32 : core - 3.1 - noarch : graphics - 3.1 - ia32 : graphics - 3.1 - noarch
  3. Distributor ID: CentOS
  4. Description:    CentOS release 5.4 (Final)
  5. Release:        5.4
  6. Codename:       Final
This command applies to all Linux, including Redhat, SuSE, Debian, CentOS, and other distributions.
  
 
  1. [email protected] ~ # uname
  2. Linux
  3. [email protected] ~ # uname -r
  4. 2.6.18-164.el5
  5. [[email protected] ~]# uname -a
  6. Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux
The following two ways apply to Redhat,centos
 
   
  
  1. [email protected] ~ # cat /etc/redhat-release
  2. CentOS release 5.4 (Final)
Log in to Linux execution Rpm-q redhat-release
 
   
  
  1. #rpm -q redhat-release
or CentOS
 
   
  
  1. [email protected] ~ # rpm -q centos-release
  2. centos-release-5-4.el5.centos.1
Commands for the current version of the CentOS version corresponding to Redhat
  
 
  1. # cat /proc/version
  2. Linuxversion2.6.9-78.ELSMP ([email protected].CentOS.org) (gcc version3.4.6 20060404 (Red Hat 3.4.6-Ten)) #1 SMP Fri Jul 00:04:28 EDT



From for notes (Wiz)

[Linux Kernel] View the CentOS version method

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.