笔记-/etc/查看系统版本、内核

1、查看系统版本
cat /etc/redhat-release

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

2、查看内核版本
uname -a
uname -sr

[root@Qin ~]# uname -a
Linux Qin 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

[root@Qin ~]# uname -sr
Linux 3.10.0-862.el7.x86_64
Logo

更多推荐