How to check linux kernel version
Last updated: Jul 10, 2022
Colleagues hello to all.
In today's article we will talk about how to find out what version of the kernel you have installed in OC Linux. The kernel in Linux is the most important component of the system. The kernel controls all processes in Linux, manages memory and network access, and so on. Knowing which version of the kernel you have installed is very important because new versions are released very often with fixed security issues.
The first way to find out what kernel version you have is to run the command:
$. uname -a
$. uname -r
The second way is to look at the /proc/version file.
$. cat /proc/version
The third way is to view the contents of the osrelease file in the /proc/sys/kernel directory.
$. cat /proc/sys/kernel/osrelease
The fourth way is to see which rpm package is installed.
$. sudo rpm -q kernel
From all the examples you can see that I am currently running kernel version 4.18
Thank you all, I hope that my article helped you in some way.