Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (45k points)

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

1 Answer

0 votes
by (99k points)

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 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

hostnamectl

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.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 17, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...