centos6-7通用查看系统版本的方法

    由于最近要写一个centos的初始化脚本,可是centos6和centos7版本有不少命令都不相同,因此为了让脚本在两个版本之间均可以使用,就须要对centos系统版本进行判断。centos     经过查找各类资料,我发现基本有下面几种查看系统版本的方法:app 方法一:能够用lsb_release -a来查看系统版本centos7 [root@centos6 ~]# lsb_relea
相关文章
相关标签/搜索