Check Kernel Version of Linux Using Command Line Terminal {Multiple Ways}

How to check Kernel Version in Linux using Terminal Commands

Find Linux Kernel Version


heck Kernel Version in Linux: Linux Kernel is the free and open-source, Unix based operating system. The Linux mainly adopts the Kernel and deployed on Linux based Desktops & Linux based Servers. The Linux Kernel works like the bridge or a connection between the Hardware and Software. The Linux kernel versions are released by contributors all around the world. These Linux kernels are released under the GNU license. The older versions of the Linux Kernel contains many major problems and so each day the contributors all around the world are trying to fix those error and bugs. The latest version of Linux Kernel is bugs free and have enhanced security. The older versions have some vulnerability leak and so it is more suggestable to upgrade your Linux version to the latest. In this article, We are going to provide the information about finding the Linux Kernel version using the command line in Terminal.

Jump To:

How To Find Linux Kernel Version Using uname Command:

There are many ways available to find the Linux Kernel version, Using uname to check Linux Kerner version is the most commonly used method. The uname is the common command which displays the several system information including the Linux kernel architecture, name version, and release. To find the version of kernel just copy the following command:

$uname -srm
uname method
uname method

The above image says the Kernel version of the Ubuntu Linux OS. uname -srm will displays the kernel of structure of Ubuntu Linux. Linux 5.0.0-20-generic x86_64 is the commonly used version comes with Ubuntu 19.04 Disco Dingo edition.

Check this too  Linux Kernel Version- Check your Kernel Version on Ubuntu

The Kernel version can be explained as:

  • 5– Kernel Version.
  • O– Major Revision.
  • O – Minor Revision.
  • 20– Patch number.
  • generic – Distribution specific information.
  • _64– 64 Bit Ubuntu version.

How To Find Linux Kernel Version Using hostnamectl command:

The hostnamectrl is the command which helps to display the Linux Kernel version. The hostnamectrl is the part of the systemd helps you change the system hostname.


Static hostname: tecrobust-ubuntu
Icon name: computer-laptop
Chassis: laptop
Machine ID: 8c13e58c114246c6be7ae54f68b1e772
Boot ID: 80a4c22610b2403e9bf486fd71c5e3d0
Operating System: Ubuntu 19.04
Kernel: Linux 5.0.0-20-generic
Architecture: x86-64

hostnamectl output
hostnamectl output

The above image shows the output of the “hostnamectl” command. Which also displays the Linux Kernel version.

Using GREP to extract the Linux Kernel Version in hostnamectl Command:

As you know, The hostnamectl command, display you all details about Linux PC. To display the extracted Linux Kernel version by using the GREP command is:

$hostnamectl | grep -i kernel

The output of the following command is:

Kernel: Linux 5.0.0-20-generic
Using GREP to extract Linux Kernel
Using GREP to extract Linux Kernel

How To Find Linux Kernel Version Using /proc/version File:

You can check the Linux Kernel version of Linux using the /proc/version file. The /proc directory contains the virtual files information about mounted file systems, memory & cores. The Linux Kernel version is always stored in /proc directory. The following command will help you display the Kernel version

$cat /proc/version
The cat command displays the content of the file.

The output of the above command is:


Linux version 5.0.0-20-generic ([email protected]) (gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)) #21-Ubuntu SMP Mon Jun 24 09:32:09 UTC 2019

Check this too  Linux Kernel Version- Check your Kernel Version on Ubuntu
/proc/version output
/proc/version output

The above image shows that the ouput of the “/proc/version/ file“. The Linux Kernel version is listed in the above image.


That’s it, In this article, we showed the different ways to find the Linux Kernel version. The commands should work on all popular Linux Distributions including Debian, Red Hat, Ubuntu, Arch Linux, Fedora, CentOS, Kali Linux, OpenSUSE, Linux Mint.

Leave a Reply

Your email address will not be published. Required fields are marked *


Written by Julian

Hello Folks! I'm Julian, Promoted to the Content writer for the category of Commands & Web Apps in Tec Robust. Enjoy my content & Learn more Linux Commands!

Contact me:
tecrobust [@]
Sub: Message to Julian

Install Boxy-SVG Ubuntu

Boxy-SVG: Install Boxy-SVG for Ubuntu 18.04 LTS and 19.04[Latest]

HTML Minifier

HTML Minifier- Minify your HTML Codes Instantly using HTML minifier