How to check os ver...
Clear all

How to check os version in linux command line?  


Noble Member
Joined: 4 months ago
Posts: 1179
01/04/2021 12:54 pm  

Could someone tell me how to check the OS version in Linux using the command line?


Noble Member
Joined: 4 months ago
Posts: 1161
01/04/2021 12:55 pm  

Linux is an open-source and free OS that has many variants referred to as Linux distributions. You could check the OS version in Linux in the simple 4 steps mentioned below:

Open a Linux terminal most commonly is Bash Shell. 

Then type any of these three command-lines in it to determine the OS name and version in Linux:

cat /etc/os-release

lsb_release -a




And you could determine the OS version and name from the output of the command.

Wishing to learn Linux and get yourself certified? Then check out the Linux training course from Intellipaat which offers you a self-paced video course of 16hrs combined with 32hrs of projects and exercises to help you obtain the required hands-on experience.

On this note, I would suggest you watch the Linux Commands Tutorial for Beginners video from our experts to help you get started.