GNU/Linux Detecting Linux distribution name and version using GNU coreutils


So the GNU coreutils should be avaialable on all linux based systems (please correct me if I am wrong here).

If you do not know what system you are using you may not be able to directly jump to one of the examples above, hence this may be your first port of call.

`$ uname -a

On my system this gives me the following...

`Linux Scibearspace 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

Here you can see the following :

Scibearspace : the name of my pc

  • Scibearspace : the name of my pc
  • 3.16.0-4-amd64 : the kernel and architecture
  • SMP Debian 3.16.7-CKT25-2+deb8u3 : tells me I am running debian with the 3.16 kernel
  • Finaly the last part I am running debian 8 (update 3).

I would welcome any others to add in results for RHEL, and SuSe systems.