January 11, 2009

How to find Linux version from command line ?

There are few simple commands which will show you which version or distribution Linux is installed on the system .

You can use these commands shown below to find out Kernel version, Distribution, Linux Kernel complied date etc..


1. # cat /proc/version

Output :
Linux version 2.6.25-14.fc9.i686 (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) ) #1 SMP Thu May 1 06:28:41 EDT 2008


2. # uname -a

Output :
Linux localhost.localdomain 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux


3. # cat /etc/issue

Output :
Fedora release 9 (Sulphur)
Kernel \r on an \m (\l)


No comments: