Linux-Fedora-CentOS-查看系统版本信息

#Fedora
dnf install redhat-lsb -y

#CentOS
yum install redhat-lsb -y


[root@*****]# lsb_release -a
LSB Version:  :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:       Fedora
Description:  Fedora release 27 (Twenty Seven)
Release:      27
Codename:     TwentySeven