View the centos version.

Source: Internet
Author: User

View the centos version.

 

-- Write at the beginning --

Different Versions of Linux have some minor differences;

So, you often need to check the server version number;

 

-- Body --

Run the following command to view the linux Server version:

# Lsb_release-

LSB Version: base-4.0-amd64: base-4.0-noarch: core-4.0-amd64: core-4.0-noarch

Distributor ID: CentOS

Description: CentOS release 6.5 (Final)

Release: 6.5

Codename: Final



This command applies to all linux releases, including Redhat, SuSE, and Debian.
Root @ idolaoxu ~ # Uname
Linux
Root @ idolaoxu ~ # Uname-r
2.6.18-164. el5

[Root @ idolaoxu ~] # Uname-

Linux iZ94b31ttqsZ 2.6.32-431.23.3.el6.x86 _ 64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


The following two methods apply to RedHat and CentOS:

Root @ idolaoxu ~ # Cat/etc/redhat-release
CentOS release 5.4 (Final)



Log on to linux and run rpm-q redhat-release.

# Rpm-q redhat-release
Or CentOS

Root @ idolaoxu ~ # Rpm-q centos-release
Centos-release-5-4.el5.centos.1

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.