How to Check Kernel Version in Ubuntu 20.04

The kernel is one of the most important parts of a system. In the case of Ubuntu or Debian, the kernel is rarely upgraded to major versions, although it is patched frequently. As with the entire system, it is also a good idea to check the kernel version because it will tell you more about the system and provide better support.

Check the kernel version in Ubuntu 20.04

This type of system information can be obtained using the terminal or graphical monitoring tools. However, it is safer and faster to do it through the terminal using several different commands.

Let’s go for it.

Using the uname command

One of the easiest methods is to use the uname command. Thanks to this, you can quickly get the kernel version.

To do this, you have to open a terminal and run the following command

uname -r

You will get an output screen like this

5.13.0-39-generic

It indicates the version of the kernel the system is running.

One of the main advantages of uname is that it comes built into the system so you don’t have to install any external programs.

The hostnamectl command

Although we use the hostnamectl command for hostname related tasks, it also allows us to know the kernel version.

To do this, just run

hostnamectl

And on the output screen you will see the kernel version and other system information.

Kernel: Linux 5.13.0-39-generic

This is how quick and easy it is to check the kernel version in Ubuntu 20.04.

Check the kernel version in Ubuntu 20.04 using the /proc/version file.

System information is stored in configuration files that can be accessed at any time. One of these files is /proc/version. Be careful when handling these files.

To find out the kernel version of the system, we can display the file mentioned above with the cat command

cat /proc/version

You will get an output screen like this.

Linux version 5.13.0-39-generic (buildd@lcy02-amd64-080)

Conclusion

In this post we have shown you several commands to check the kernel version in Ubuntu 20.04.

Please share this post with your friends and help us to grow.

See you soon.

Leave a Comment

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

Scroll to Top