Production Environment: OS: CentOSrelease6.7 (Final) Method 1: [root @ sky9896sky] # lsb_release-abash: lsb_release: commandnotfound [root @ sky9896sky] # yuminstalllsb & ndash; y [root @ sky9896sk
Production environment:
OS:CentOS release 6.7 (Final)
Method 1:
[Root @ sky9896sky] # lsb_release-
Bash: lsb_release: command not found
[Root @ sky9896sky] # yum install lsb-y
[Root @ sky9896sky] # lsb_release-
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
Method 2:
[Root @ sky9896 sky] # cat/etc/redhat-release
CentOSrelease 6.7 (Final)
Method 3:
[Root @ sky9896 sky] # rpm-qcentos-release
Centos-release-6-7.el6.centos.12.3.x86_64
Method 4:
[Root @ sky9896 sky] # cat/etc/issue
This method is determined based on the actual situation. not every method will be effective. The first and second methods are recommended.