How to check the Linux kernel version in CentOS 9 Stream

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

Hello, friends. In this very short post, you will learn how to check the Linux kernel version in CentOS 9 Stream.

Knowing the kernel version in a Linux operating system. This will help you in administrative tasks to know an essential component of the system, such as the kernel.

To achieve this, it is best to do it via the terminal because we can run it on servers and desktop systems.

So let’s go for it.

Check Linux kernel version in CentOS 9 Stream

To get the kernel version on a system, we can do it via the terminal using several methods.

So open the terminal from the main menu and first update the whole system.

sudo dnf update

Now we can get to work.

The first way to get the kernel version is to use the hostnamectl command, this command returns other valuable system information.

Just run it in a terminal

hostnamectl

Output:

1.- check the Linux kernel version
1.- check the Linux kernel version

Another way to do this is to use the uname command but add the -r option.

This tool is present not only in CentOS but also in other systems.

uname -r

You will get an output screen like this

5.14.0-78.el9.x86_64

This way, you can find out what version of the kernel you have on the system.

Is it useful to know the kernel version?

The concrete answer is YES. It is useful because in certain administrative tasks, we need to know which version we are running to make decisions about whether to upgrade or maintain it.

Also in compilation processes it is also useful to take advantage of features of the current version.

Conclusion

Knowing the kernel version is easy to be useful for administrative tasks. As you can see, there are several ways to do this that can be useful in scripts and on screen output.

Thanks for reading.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook