How to check Linux distribution and version?

linuxIf u are on an unknown server and keen to know it’s linux distribution info, you can check the linux distribution info by just a single command (eg. version, codename, etc). Just tested this command in UBuntu and CentOS, both return as what i expected. 🙂

To check linux distribution and version, follow the steps below:-


  • Start your terminal and enter the command below to show your the linux distribution info:-
    $ cat /etc/*-release
  • Here’s my result in one of my my Ubuntu box:-
    $ cat /etc/*-release

    Cool right!

* This command is only for linux machine, Mac OS X machine will show error.

Share this with your friends:-

One Response to “How to check Linux distribution and version?”

  1. uvdevnull says:

    You can also use: cat /etc/issue

Leave a Reply