如何获得Centos,Fedora,Red Hat发行版本?

CentOS, Fedora, Red Hat are similar distibutions. Actually Red Hat supports other distributions. In this case how can I get release version of CentOS, Red Hat, Fedora. It is ver easy actually. These distributions holds release version related information in their /etc/redhat-release file. So simple echoing will give release information.

CentOS,Fedora和Red Hat都是类似的分布。 实际上,红帽还支持其他发行版。 在这种情况下,如何获得CentOS,Red Hat和Fedora的发行版本。 实际上这很容易。 这些发行版在/ etc / redhat-release文件中包含与发行版相关的信息。 因此,简单的回显将提供发布信息。

从redhat-release获取发行信息 (Get Release Information From redhat-release)

Simple print this file into terminal

简单地将此文件打印到终端

$cat /etc/redhat-release  
CentOS Linux release 7.2.1511 (Core)
  • CentOS is the distribution name

    CentOS是发行名称

  • is major version number which is parallel with Red Hat for CentOS

    7是主要版本号,与Red Hat for CentOS并行

  • is minor version number and other part is not so important

    2是次要版本号,其他部分不是很重要

And an other example from Fedora

还有Fedora的另一个例子

$ cat /etc/redhat-release  
Fedora release 24 (Twenty Four)
LEARN MORE  What Is an Operating System (OS)?
了解更多什么是操作系统(OS)?

翻译自: https://www.poftut.com/get-centos-fedora-red-hat-release-version/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值