How to check CentOS7 version information

藏色散人
Release: 2020-11-30 14:17:15
forward
5497 people have browsed it

The following column will introduce you to the method of checking CentOS7 version information from the centos basic tutorial column. 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*
Copy after login

 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
Copy after login

  Display the result:

CentOS Linux release 7.3.1611 (Core)
Copy after login

2. Check the kernel version

  Query the operating system kernel The version information is:

uname -r
Copy after login

 Query result:

3.10.0-514.26.2.el7.x86_64
Copy after login

3. Check the operating system bit number

 The query command is:

getconf LONG_BIT
Copy after login

 The displayed result is:

64
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!