How to view centos versions

Source: Internet
Author: User

You can view the following commands:


# Lsb_release-

LSB version: core-3.1-ia32: core-3.1-noarch: graphics-3.1-ia32: graphics-3.1-noarch

Distributor ID: centos

Description: centos release 5.4 (final)

Release: 5.4

Codename: Final


This command applies to all Linux releases, including RedHat, Suse, and Debian.


[Email protected] ~ # Uname

Linux

[Email protected] ~ # Uname-R

2.6.18-164. EL5


The following two methods apply to RedHat and centos:


[Email protected] ~ # 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


[Email protected] ~ # Rpm-Q centos-release

Centos-release-5-4.el5.centos.1


This article is from "Chen shenggang's blog", please be sure to keep this source http://chenshengang.blog.51cto.com/4399161/1438908

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.