lsb_release -a
如果命令不存在,则yum安装
yum install redhat-lsb
查看当前linux版本
原文:https://www.cnblogs.com/zzdylan/p/8877736.html