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. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
  2. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
  3. LFS520 OpenStack Cloud Architecture and Deployment
    08 Sep » 11 Sep - 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