查看当前linux版本

lsb_release -a

  

如果命令不存在,则yum安装

yum install redhat-lsb

  

原文地址:https://www.cnblogs.com/zzdylan/p/8877736.html