How to check linux kernel version

  • Last update: Apr 3, 2024
  • Views: 32
  • Author: Admin
How to check linux kernel version

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

linux_version_core

or

$. uname -r

linux_version_core


 

The second way is to look at the  /proc/version file.

$. cat /proc/version

linux_version_core


 

The third way is to view the contents of the osrelease file in the /proc/sys/kernel directory.

$. cat /proc/sys/kernel/osrelease

linux_version_core


 

The fourth way is to see which rpm package is installed.

$. sudo rpm -q kernel

linux_version_core


 

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.

SIMILAR ARTICLES