0
点赞
收藏
分享

微信扫一扫

Linux查看系统发行版本的方法(lsb_release)

耳一文 2024-10-30 阅读 5
Linux运维

[root@sre01 ~]# 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"




[root@sre01 ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)


[root@sre01 ~]# lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.9.2009 (Core)
Release:	7.9.2009
Codename:	Core

[root@sre01 ~]# lsb_release -is
CentOS

[root@sre01 ~]# lsb_release -rs
7.9.2009


举报

相关推荐

0 条评论