Categories: TutorialsUbuntu

How to Check Kernel Version in Ubuntu 20.04

A kernel is a computer program and it provides an interface between software and hardware of a computer system. One of the core responsibilities of Kernel is to pass commands or instructions from applications to the underlying hardware of the CPU and return the result. You can read more about the kernel on the Wikipedia page.

In today’s tutorial, I am focusing on several ways of checking the kernel version in Ubuntu 20.04.

Let’s begin!

Prerequisites

  • Ubuntu 20.04 machine
  • sudo privileges

Checking Kernel Version in Ubuntu 20.04

Method # 1: Using uname command

Uname prints the system information including operating system name, kernel release and version etc.

Sponsored

Execute the uname command with -r option,

uname -r

Method # 2: Using hostnamectl command

Execute the following and look for the ‘Kernel’ as shown below in the screenshot,

hostnamectl

Method # 3: Using /proc/version file

You can check the kernel version by viewing the content of the/proc/version file. Execute the following,

Sponsored
cat /proc/version

Method # 4: Using dmesg command

Dmesg command is used to print kernel related messages on the terminal.

Run the dmesg command along with grep to extract the kernel version from the output.

sudo dmesg | grep -i linux

Conclusion

That’s all for this guide. See you again in the next post.

If you are interested in updating your kernel in Linux Mint 20, follow this article.

Ubuntu Server Admin

Recent Posts

How to Deploy PowerDNS Cluster on Ubuntu VPS Servers

This article provides a detailed guide for how to deploy PowerDNS cluster on Ubuntu VPS…

8 hours ago

KubeCon Europe 2025: Containers & Connections with Ubuntu

It’s hard to believe that the first KubeCon took place nearly 10 years ago. Back…

2 days ago

The State of Silicon and Devices – Q1 2025 Roundup

Welcome to the first quarterly roundup on the State of Silicon and Devices by Canonical. …

3 days ago

Ubuntu Confidential VMs Now Available on Google Cloud A3 with NVIDIA H100 GPUs

Organizations are racing to harness the transformative power of AI, but sensitive data privacy and…

3 days ago

How to Install a Specific Version of LLVM on Ubuntu or Debian Linux

In this article, we will see how to install a specific version of llvm on…

3 days ago

Ubuntu 25.04 (Plucky Puffin) Beta released

The Ubuntu team is pleased to announce the Beta release of the Ubuntu 25.04 Desktop,…

3 days ago