标签:name linux 内核版本 uname centos lin roo str root
1、查看系统版本/etc/redhat-release[root@gitlab ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
2、查看内核版本uname -a 或 /proc/version
a/
[root@gitlab ~]# uname -a
Linux gitlab 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
b/
[root@gitlab ~]# cat /proc/version
Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018
标签:name linux 内核版本 uname centos lin roo str root
原文地址:https://blog.51cto.com/14623268/2486733