1、首先安装lsb_release命令
dnf install redhat-lsb-core
2、命令查看
[root@centos8 ~]# lsb_release -a #打印结果: LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 8.3.2011 Release: 8.3.2011 Codename: n/a