【Linux学习】如何查看Linux内核版本及内核版本含义

如何查看Linux内核版本及内核版本的含义

一、查看Linux内核版本有2个命令。

uname -r

[root@nie ~]# uname -r
4.18.0-147.el8.x86_64

cat /proc/version

[root@nie ~]# cat /proc/version
Linux version 4.18.0-147.el8.x86_64 ([email protected]) (gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)) #1 SMP Wed Dec 4 21:51:45 UTC 2019

cat /etc/redhat-release,查看Linux版本

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

二、Linux内核版本含义

4 :当前内核主版本号
18 :当前内核次版本号,偶数为稳定版
0:表示修订版本号
147:表示修补程序的版本号
el7 :表示该版本是为Enterprise Linux 8发行版设计的
x86_64 :x86_64代表这是64bit的系统

猜你喜欢

转载自blog.csdn.net/weixin_43757336/article/details/130873531