How To Find The Linux Kernel Version ?

by lifeLinux on May 30, 2011

To find the linux kernel version, you should login and type the following command

$ uname -r


Sample output

2.6.18-194.32.1.el5

A second way is to look at the /proc/version file, type the following command

$ cat /proc/version

Sample output

Linux version 2.6.18-194.32.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 17:52:25 EST 2011

A third way is to look at the contents of the dmesg command, type the following command

$ dmesg | grep Linux

Sample output

Linux version 2.6.18-194.32.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 17:52:25 EST 2011
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Linux Plug and Play Support v0.97 (c) Adam Belay
SELinux:  Registering netfilter hooks
Linux agpgart interface v0.101 (c) Dave Jones
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks

Related Posts:

Previous post:

Next post: