怎么看Linux是不是CentOS

怎么看Linux是不是CentOS

怎么看linux是不是centos

方式一:查看是否存在redhat-release文件

cat?/etc/redhat-release

若提示文件不存在則不是centos,存在則是CentOS。

注:判斷Debian/Ubuntu可以使用cat /etc/debian_version。

方式二:根據包管理工具來判斷

輸入yum,有輸出則是CentOS,提示命令不存在則不是。

注:判斷Debian/Ubuntu可使用apt。

推薦學習:CentOS使用教程

? 版權聲明
THE END
喜歡就支持一下吧
點贊15 分享