How to check the version number in centos

王林
Release: 2020-05-23 14:36:32
Original
4293 people have browsed it

How to check the version number in centos

1. Use the lsb_release -a command to view

[root@sky9896sky]# lsb_release -a
bash:lsb_release: command not found
[root@sky9896sky]#yum install lsb –y
[root@sky9896sky]# lsb_release -a
LSBVersion:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
DistributorID: CentOS
Description:    CentOS release 6.7 (Final)
Release:        6.7
Codename:       Final
Copy after login

2. Use the cat /etc/redhat-release command to view

[root@sky9896 sky]# cat /etc/redhat-release
CentOSrelease 6.7 (Final)
Copy after login

Recommended tutorial: centos tutorial

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

Related labels:
source:php.cn
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