[[howto:system:which-linux-or-unix-distribution-am-i-running]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howto:system:which-linux-or-unix-distribution-am-i-running [2018-08-05 04:25] (current)
Line 1: Line 1:
 +~~META:
 +creator = Brendan Kidwell
 +&date created = 2008-01-17
 +~~
 +{{tag>​linux reflection}}
 +~~DISCUSSION~~
 +====== Which Linux or Unix Distribution am I Running? ======
 +
 +Try these commands to find out what kind of system you're logged into. The example output comes from an Ubuntu 7.10 desktop.
 +
 +===== From boot-time messages =====
 +
 +<​code>​
 +$ dmesg|head -1
 +[    0.000000] Linux version 2.6.22-14-generic (buildd@terranova) (gcc
 +version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue
 +Dec 18 08:02:57 UTC 2007 (Ubuntu 2.6.22-14.47-generic)
 +</​code>​
 +
 +===== From /​proc/​version =====
 +
 +<​code>​
 +$ cat /​proc/​version
 +Linux version 2.6.22-14-generic (buildd@terranova) (gcc version 4.1.3
 +20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Dec 18
 +08:02:57 UTC 2007
 +</​code>​
 +
 +===== From /etc/issue =====
 +
 +<​code>​
 +$ cat /etc/issue
 +Ubuntu 7.10 \n \l
 +</​code>​
 +
 +===== Look for '​release'​ and '​version'​ in /etc =====
 +
 +<​code>​
 +$ ls /​etc/​*-release /​etc/​*-version /​etc/​*_release /​etc/​*_version
 +/​etc/​debian_version ​ /​etc/​lsb-release
 +$ cat /​etc/​debian_version
 +lenny/sid
 +$ cat /​etc/​lsb-release
 +DISTRIB_ID=Ubuntu
 +DISTRIB_RELEASE=7.10
 +DISTRIB_CODENAME=gutsy
 +DISTRIB_DESCRIPTION="​Ubuntu 7.10"
 +</​code>​
 +
 +===== uname command =====
 +
 +<​code>​
 +$ uname -a
 +Linux kidwellb-ubuntu 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC
 +2007 i686 GNU/Linux
 +</​code>​