Home Learn Linux Linux Documentation Finding the OS Version & Distribution in Linux

Finding the OS Version & Distribution in Linux

When supporting systems you have inherited or in environments that have many different OS versions and distributions of Linux. There are times when you simply don’t know off hand what OS version or distribution the server you are logged into is.

Luckily there is a simple way to figure that out.



$ cat /etc/lsb-release 


Read more at bc-log


Subscribe to Comments Feed
  • xtraeme Said:

    This will only works on systems providing this file... there are distributions that don't rely on LSB and simply switched to the systemd way: cat /etc/os-release

  • Stuferus Said:

    i only see /etc/slackware-version ;)

  • tdmsilvino Said:

    Slackware ships /etc/os-release as well.

Check out the Friday Funnies

Sign Up For the Newsletter

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board

/** BC-056 Ameex changes to add tracking code - 2016-01-22 **/ ?>