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!
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)
Query the operating system kernel The version information is:
uname -r
Query result:
3.10.0-514.26.2.el7.x86_64
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!