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.

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    16 Feb » 20 Feb - Atlanta - GA
  2. LFD331 Developing Linux Device Drivers
    16 Feb » 20 Feb - San Jose - CA
  3. LFS220 Linux System Administration
    16 Feb » 19 Feb - Virtual

View All Upcoming Courses

Become an Individual Member
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

Join / Linux Training / Board