Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Command to check OS version of Linux Distribution

How can I check my server's linux distribution and version. Please share the command used for checking it.
by

1 Answer

iamabhishek
Run the following command in the terminal of your linux machine:

cat /etc/os-release

You will see the following output, with all the information about your Linux distribution:

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian

Login / Signup to Answer the Question.