View the CentOS version method

Source: Internet
Author: User

View Kernel version

This command applies to all Linux, including Redhat, SuSE, Debian, CentOS, and other distributions.

# uname  #  uname-r2.6.18-164~]#  uname-a#1 SMP Fri APR 2 14:58:35 EDT i686 i686 i386 gnu/linux
View System version number The following two methods apply to Redhat,centos

1. Direct view

# Cat/etc/redhat-release CentOS Release 5.4 (Final)

2. Log in to Linux execution Rpm-q redhat-release

#rpm-Q redhat-release or rpm-q centos-release

# rpm-q centos-releasecentos-release-5-4.el5.centos.1
Commands for the current version of the CentOS version corresponding to Redhat
# cat/proc/version # 1 SMP Fri Jul 00:04:28 EDT

# cat/proc/version
Linux version 2.6.9-78.ELSMP ([email protected]) (GCC version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Fri Jul 25 00:04:2 8 EDT 2008

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.