55

查看linux内核版本和CentOS版本

 4 years ago
source link: http://www.pengrl.com/p/20026/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
$uname -r

测试机1输出如下结果:

3.10.0-957.5.1.el7.x86_64

其中, 3.10.0linux内核版本957.5.1 是更细的版本,一般不关心, el7 是RHEL7系列, x86_6464位系统

测试机2输出如下结果:

2.6.32-642.15.1.el6.x86_64

含义不再逐个说明。

CentOS版本

$cat /etc/redhat-release

测试机1输出如下结果:

CentOS Linux release 7.6.1810 (Core)

其中, 7.6.1810 表示是 CentOS 7.6 版本。

测试机2输出如下结果:

CentOS release 6.5 (Final)

表示是 CentOS 6.5 版本。

原文链接: https://pengrl.com/p/20026/

原文出处: yoko blog ( https://pengrl.com )

原文作者: yoko ( https://github.com/q191201771 )

版权声明:本文欢迎任何形式转载,转载时完整保留本声明信息(包含原文链接、原文出处、原文作者、版权声明)即可。本文后续所有修改都会第一时间在原始地址更新。

ruq2Mbu.jpg!web


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK