en
  English
Phone :  +370 (5) 204-1903
Email :  sales@1gbits.com
  1. Dedicated server
  2. Blog
  3. How to Get Linux Version? [Check Linux Version Command]

How to Get Linux Version? [Check Linux Version Command]

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.

Linux Tutorial Dec 23, 20 by Nisal N 2 min Read
How to Get Linux Version? [Check Linux Version Command]

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:

cat /etc/os-release

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:

hostnamectl

The result should look somewhat alike to this:

  1. Check Linux version Using uname command:

This will not provide you the exact distribution and version, but the kernel version

uname -r

This is an example output:

Alternatively, you could also use this command:

cat /proc/version

And this will be the result:

Conclusion

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.

Keep Learning!

People Are Also Reading:

author img

Nisal N

Computers has always fascinated me since I was a kid and here we are. I love travelling for 2 reasons: the first one to see a new part of the world and second (the most important one) to experience the rich culture hidden among the country and people. I'm pretty good at cooking but very poor when it comes to baking.

Leave A Comment