Table of Contents
This tip is about the how To Check Linux OS Version. So read this free guide, How To Check Linux OS Version step by step. If you have query related to same article you may contact us.
How To Check Linux OS Version – Guide
For a normal Linux user, and especially an administrator, it is very important to know the operating system version it is running on. There can be several reasons to know the version number of your operating system. It can be very useful when installing a new program, checking the availability of various features and troubleshooting. There are several ways to check the OS version on a Linux system. In this article, we explain the graphical and command-line ways to get the operating system version of a Linux system.
Check operating system version on Linux
The procedure for finding the operating system name and version on Linux:
The / etc / os-release file
Enter the following cat command:
We can filter information such as OS version and name using the grep command / egrep command as follows:
Here’s what we see:
Even small Linux distros like Alpine Linux provide the necessary operating system (operating system) information, including the version:
Checking the operating system version on Linux using the lsb_release command
The lsb_release command provides LSB (Linux Standard Base) and distribution-specific information in the CLI. The syntax is:
Hostname command
Use the hostnamectl command to query and change the system hostname and related settings. Just type the following command to verify the operating system name and Linux kernel version:
And will give the following information. Search for “Operating System” and “Kernel”:
uname command
Just print the Linux kernel version, run:
Another option is to type the following command:
Sample results:
file / etc / issue
Use more command / less command as follows:
Final note
I hope you like the guide How To Check Linux OS Version. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.