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.

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,

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 Harden Security of VPS Server

This article demonstrates how to harden security of VPS server and is intended for server…

12 hours ago

How to install Wget on Ubuntu 24.04

In this blog post, we will guide you on how to install wget on Ubuntu…

1 day ago

Xfwl4 – The roadmap for a Xfce Wayland Compositor

Jan 27,2026 Xfwl4 - The roadmap for a Xfce Wayland Compositor We, the Xfce team…

4 days ago

🚀 Deploy n8n on Ubuntu VPS (Quick-Start Guide)

This article provides a step-by-step how-to guide to deploy n8n on Ubuntu VPS. What is…

5 days ago

How to avoid package End of Life through backporting

In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…

1 week ago

Showcasing open design in action: Loughborough University design students explore open source projects

Last year, we collaborated with two design student teams from Loughborough University in the UK.…

2 weeks ago