有勇气的牛排博客

centos系统版本查询

有勇气的牛排 382 linux 2024-11-27 22:19:20

方法一

cat /etc/centos-release
[root@master local]# cat /etc/centos-release CentOS Linux release 7.9.2009 (Core)

centos系统版本查询 方法一

方法二

CentOS 8 或更高版本,可以使用。

cat /etc/os-release
[root@master local]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

centos系统版本查询 方法二


留言

专栏
文章
加入群聊