Difference between revisions of "Find out your distribution"

From Linuxintro
imported>ThorstenStaerk
Line 1: Line 1:
 +
= Find out your distribution =
 
To find out your distribution, [[open a console]] and issue:
 
To find out your distribution, [[open a console]] and issue:
  cat /etc/*ele* /etc/*ersion*
+
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:
 
As an example, here is the output of SUSE Linux 11.1:
 
  tweedleburg:~ # cat /etc/*ele*
 
  tweedleburg:~ # cat /etc/*ele*
Line 11: Line 19:
 
  lsb_release -rd
 
  lsb_release -rd
  
 +
= Find out your kernel =
 
To find out your kernel, use  
 
To find out your kernel, use  
 
  uname -a
 
  uname -a
  
 +
= Find out gcc that compiled your kernel =
 
To find out the gcc that compiled the kernel, use
 
To find out the gcc that compiled the kernel, use
 
  cat /proc/version
 
  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

Revision as of 09:07, 5 September 2011

Find out your distribution

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

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

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