How To Check Linux Version

How To Check Linux Version – The kernel is a collection of core programs from the Linux operating system and its responsibility is to manage computer resources that also have communication between hardware and software. Because of its very important nature, upgrading to the latest version must be done carefully. But this kernel update is sometimes required to close security holes or get the latest features you need.

To find out if there is a security hole on your Linux server or check whether a feature can be used then we need to know the current kernel version. And this is very easy. The following are tips and also a tutorial on How To Check Linux Version, which you can try easily and quickly.

How To Check Linux Version

How do you check the kernel version on Linux? Here I am demonstrating using CentOS 6.5 x86. To check it, you just type the command:

uname -r

The reply will be as follows:


Where can it be interpreted:

• 2 is the kernel version.

• 6 is a major revision.

• 32 is a minor revision.

• 042stab108.5 is information on repair or release of the revision.

If you want the data to be more complete, you can use this command:

uname -a

Later the results will be as follows:

Linux Servernesia 2.6.32-042stab108.5 # 1 … MSK 2015 i686 i686 i386 GNU / Linux

Will include the type of operating system, the Linux kernel version, the host name (computer), how many processors, when the kernel is compiled and the architecture.

It’s also called Linux, there are clearly many roads to Rome, the alternative way to get the kernel version is with the following command: “cat / proc / version”

The message will be returned as follows:

Linux version 2.6.32-042stab108.5

There are additional details such as compiled using what software and what operating system.

Oh yes, this method can be done on all Linux distributions because it is a standard command. So even if you use CentOS, Ubuntu, Debian, RHEL, OpenSUSE, Slackware and so on it makes no difference.

As you know, Linux has a variety of different distributions according to the purpose it made, and the number is very large today. To find out what distribution and what version you are using Linux, you can follow this article.

How to View the Linux Version

The easiest and simplest way to see the name of a Linux distribution and version number can be done by opening the terminal and typing the following command:

cat / etc / issue

If you need information, you can use “different command”, may not work on every distro, but it certainly works on popular distros. Just like before, open the terminal and type the following:

cat / etc / * release

This will give you something more detailed as in the following screenshot, and you can see that you not only have the information released, but you can also see the codename and URL. In Ubuntu we can also use the etc / os-release command, but in other distributions it might be different, for example in redhat it might use the etc / redhat-release command. But if you use the * sign, it indicates for all distributions, and the information that appears is about the distro that is being used on our computer.

 How to View the Kernel Version

The version of the distribution that you are running is different from the version of the Linux kernel. You can easily see the kernel version by opening the terminal and typing the following:

uname –r

This will produce the following output, where we can see the kernel version that is being used is 3.13.0.

If we only looked at the kernel version used, with the -r parameter, we will now use the -a parameter to see all information. Type the following command in the terminal:

uname -a

In the screenshot below you can tell that my computer is running a x86 Linux version, which means 32-bit. Or you can also use uname -i, to see a more appropriate version of the distro.

Such information can be conveyed. If you have other suggestions or ways, you can share them in the comments field. Hopefully the information and tutorials on the How To Check Linux Version can be useful. Good luck!