noddy asked this 2 years ago

How do I find my Linux version and distribution name from shell prompt?

What is the easiest way to find Linux version and distribution name from the terminal? Is there a command that works for all different distributions? I am on Fedora.


Best Answer by dig_abacus
2 likes

The different files in /etc have info about version, distribution and other.

Eg: In Fedora

/etc/redhat-release, /etc/os-release, /etc/system-release.

Run 

$ cat /etc/*release

 

This will give combined info from the *-release files