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!
Uname prints the system information including operating system name, kernel release and version etc.
Execute the uname command with -r option,
uname -r
Execute the following and look for the ‘Kernel’ as shown below in the screenshot,
hostnamectl
You can check the kernel version by viewing the content of the/proc/version file. Execute the following,
cat /proc/version
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
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.
Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.
This article provides a detailed guide for how to deploy PowerDNS cluster on Ubuntu VPS…
It’s hard to believe that the first KubeCon took place nearly 10 years ago. Back…
Welcome to the first quarterly roundup on the State of Silicon and Devices by Canonical. …
Organizations are racing to harness the transformative power of AI, but sensitive data privacy and…
In this article, we will see how to install a specific version of llvm on…
The Ubuntu team is pleased to announce the Beta release of the Ubuntu 25.04 Desktop,…