When it comes to web hosting [VPS hosting] or other similar online services, that Linux is king. There are simply more advantages to using Linux than Windows for web hosting purposes. Instead, let’s assume that you have a new Linux online service, a VPS perhaps, and you want to find Linux version installed in your system.
As Linux is a free and open-source operating system, there are many variants of it out there, called Linux distributions. Some of the most popular ones are Debian, CentOS, Ubuntu, Fedora, and RHEL. It is most important to check linux version you have installed in your device before installing any application and security patches.
How To Check Linux Version [Find Linux Version Command]
There are multiple ways to check Linux version on our device. Here we have listed the best Linux version command to find Linux version.
1. Find Linux version with cat command:
Type in the following command into the Linux terminal:
The output should look like this.
You can see the result above, but if you want a filtered version, simply enter this command:
grep '^VERSION' /etc/os-release
As you can see in the output below, it gives the distribution name and its version
2. Get Linux version Using hostnamectl command:
Open the terminal and type the following command:
The result should look somewhat alike to this:
Check Linux version Using uname command:
This will not provide you the exact distribution and version, but the kernel version
This is an example output:
Alternatively, you could also use this command:
And this will be the result:
This is all about how to check linux version/get linux version/find linux version with the linux version commands. This article also helps you to check various methods through you can get your Linux distribution version, and even the kernel version. If you think that there are other methods also available there through we can get the same result then you can leave a comment below with the comment box and we will answer you and add that methods too in our articles.
Thanks for reading.
People Are Also Reading: