Home>Article>Operation and Maintenance> How to check CentOS7 version information

How to check CentOS7 version information

藏色散人
藏色散人 forward
2020-11-30 14:16:43 5441browse

The following column will introduce you to the method of checking CentOS7 version information from thecentos basic tutorialcolumn. I hope it will be helpful to friends who need it. Helps!

1. Check the version number

  CentOS version number information is generally stored in the configuration file. In CentOS, the configuration related to its version The file contains the centos keyword. The file is generally stored in the /etc/ directory, so we can directly search for related files in this folder.

ll /etc/*centos*

 Viewed results:

# The file that stores its version configuration information is "centos-release", which translates to "CentOS release version" , so we can view the corresponding version information of CentOS here.

  Check the version number of CentOS:

cat /etc/centos-release

  Display the result:

CentOS Linux release 7.3.1611 (Core)

2. Check the kernel version

  Query the operating system kernel The version information is:

uname -r

 Query result:

3.10.0-514.26.2.el7.x86_64

3. Check the operating system bit number

 The query command is:

getconf LONG_BIT

 The displayed result is:

64

The above is the detailed content of How to check CentOS7 version information. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete