View CentOS Version number

Source: Internet
Author: User

--write at the beginning--

Playing Linux, different versions will have some subtle differences;

So, it is often necessary to check the server version number;

--Text--

You can view the Linux server version number with the following command:

# lsb_release-a

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, including Redhat, SuSE, Debian, and other distributions.
[Email protected] ~ # uname
Linux
[Email protected] ~ # Uname-r
2.6.18-164.el5

[Email protected] ~]# uname-a

Linux iz94b31ttqsz 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 17:20:51 UTC x86_64 x86_64 x86_64 gnu/linux


The following two ways apply to Redhat,centos

[Email protected] ~ # Cat/etc/redhat-release
CentOS Release 5.4 (Final)



Log in to Linux execution Rpm-q redhat-release

#rpm-Q Redhat-release
or CentOS

[Email protected] ~ # Rpm-q Centos-release
Centos-release-5-4.el5.centos.1

View CentOS Version number

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.