5 Ways To Find Out What Linux And Distribution Version You Are Using

When you put your hands on a friends Linux box, you will need to know exactly what Linux distribution is him using. There is more than one way to find out the Linux Distribution and Kernel Version.

1. With dmesg:

$ dmesg | grep -i "linux version"
[ 0.000000] Linux version 3.0.0-12-generic (buildd@crested) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 (Ubuntu 3.0.0-12.20-generic 3.0.4)

2. Read the /proc/version file:

$ cat /proc/version
Linux version 3.0.0-12-generic (buildd@crested) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011

2. With uname:

$ uname -mrs
Linux 3.0.0-12-generic x86_64

Where:

  • Linux – kernel name
  • 3.0.0-12.20-generic – kernel version
  • X86_64 – cpu architecture

4. With lsb_release -a:

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 12 Lisa
Release: 12
Codename: lisa

5. Open the /etc/lsb-release file:

$ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=12
DISTRIB_CODENAME=lisa
DISTRIB_DESCRIPTION="Linux Mint 12 Lisa"

Share and Enjoy

  • Twitter
  • Facebook
  • Google Plus
  • Email
  • RSS
Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>