Check CentOS kernel version

Method 1:

You can find out which CentOS kernel version and architecture you are using with the uname command

$ uname -s -rLinux 3.10.0-862.3.2.el7.x86_64

Model 2: 

You can also use the command “hostnamectl” to find OS version information in CentOS 7 systems

$ hostnamectlStatic hostname: example.ioIcon name: computer-vmChassis: vmMachine ID: b30d0f2110ac3807b210c19ede3ce88fBoot ID: c5d429bb63134b21b024616f9f28cc26Virtualization: xenOperating System: CentOS Linux 7 (Core)CPE OS Name: cpe:/o:centos:centos:7Kernel: Linux 3.10.0-862.3.2.el7.x86_64Architecture: x86-64