Difference between revisions of "Find out your distribution"

From Linuxintro
Line 14: Line 14:
 
  LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64"
 
  LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64"
 
  cat: /etc/lsb-release.d: Is a directory
 
  cat: /etc/lsb-release.d: Is a directory
 
If you get a Debian release, you have Debian or Ubuntu. To find out if you have Debian or Ubuntu, issue
 
lsb_release -rd
 
  
 
= Find out your kernel =
 
= Find out your kernel =

Revision as of 09:12, 5 September 2011

To find out your distribution, open a console and issue:

lsb_release -rd 

As an example, here is the output of SUSE Linux 11.4:

tweedleburg:~ # lsb_release -rd
Description:    openSUSE 11.4 (x86_64)
Release:        11.4

If this does not work for you you have a distribution that is not lsb-compatible. In this case you can still find out your distribution, but it gets heuristic. Enter

cat /etc/*ele*

As an example, here is the output of SUSE Linux 11.1:

tweedleburg:~ # cat /etc/*ele*
openSUSE 11.1 (x86_64)
VERSION = 11.1
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64"
cat: /etc/lsb-release.d: Is a directory

Find out your kernel

To find out your kernel, use

uname -a

Find out gcc that compiled your kernel

To find out the gcc that compiled the kernel, use

cat /proc/version

Example:

tweedleburg:~ # cat /proc/version
Linux version 2.6.37.6-0.7-desktop (geeko@buildhost) (gcc version 4.5.1 20101208 [gcc-4_5-branch revision 167585] (SUSE Linux) ) #1 SMP PREEMPT 2011-07-21 02:17:24 +0200