Tip of the week 8
Linux commands to retrieve your system & distro version
There many ways to know your system and your distro version, here are few ways to find it :
Show your Linux Version :
To show linux version using /proc/
natjohan$ cat /proc/version
Linux version 3.7.4-204.fc18.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Wed Jan 23 16:44:29 UTC 2013
With dmsg command :
natjohan$ dmesg | grep "Linux version"
[ 0.000000] Linux version 3.7.4-204.fc18.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Wed Jan 23 16:44:29 UTC 2013
With uname :
natjohan$ uname -a
Linux cerize-laptop 3.7.4-204.fc18.x86_64 #1 SMP Wed Jan 23 16:44:29 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
To check your distro version
With /etc/ :
natjohan$ cat /etc/issue
Fedora release 18 (Spherical Cow)
Kernel \r on an \m (\l)
Or :
natjohan$ cat /etc/*release*
Fedora release 18 (Spherical Cow)
cat: /etc/lsb-release.d: est un dossier
NAME=Fedora
VERSION="18 (Spherical Cow)"
ID=fedora
VERSION_ID=18
PRETTY_NAME="Fedora 18 (Spherical Cow)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:18"
Fedora release 18 (Spherical Cow)
Fedora release 18 (Spherical Cow)
cpe:/o:fedoraproject:fedora:18
With lsb_release (if it's installed):
natjohan$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-ia32:core-4.1-noarch:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-ia32:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 18 (Spherical Cow)
Release: 18
Codename: SphericalCow
Comments