How to Check the Version of Linux


Whichever operating system you are working with, at one point or the other, you feel the need of knowing its exact version that you are running. Since Linux is one of the most commonly used operating systems, therefore, today, we will talk about a few methods with which you can easily check the version of Linux that you are running.

Methods of Checking the Version of Linux:

For checking the version of Linux, you can use any of the following three methods:

Method # 1: Using the lsb_release Command:

For using the lsb_release command for checking the Linux version, you will have to run it as shown below:

$ lsb_release –d

The version of Linux that we are currently running is shown in the following image:

Method # 2: Using the uname Command:

To use the uname command for checking the version of Linux, you have to run it in the following manner:

$ unamesrm

The currently running Linux version is shown in the image below:

Method # 3: Using the hostnamectl Command:

Finally, you can also use the hostnamectl command for viewing the version of Linux in the following manner:

$ hostnamectl

The version of Linux that we are currently using is highlighted in the image shown below:

Conclusion:

By picking out any of the three methods that we have discussed in this article, you can easily check the version of Linux that you are working with. All three of these commands will serve this very purpose for you without any difficulty.

Print Friendly, PDF & Email
Categories