查看Linux版本的方法

1)命令: lsb_release -a

[root@localhost tmp]# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.3 (Final)
Release:        6.3
Codename:       Final

2)命令:cat /etc/redhat-release

[root@localhost tmp]# cat /etc/redhat-release
CentOS release 6.3 (Final)
原文地址:https://www.cnblogs.com/mengzhongshi/p/3776841.html