According to the man page of uname
-r # Kernel Release
-v #Kernel release version
Also you can find out the details by,
PHP Code:
$ cat /proc/version
OUTPUT:
HTML Code:
Linux version 2.4.21-15.EL (bhcompile@bugs.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)) #1 Thu Apr 22 00:27:41 EDT 2004
or
PHP Code:
dmesg | grep "Linux version"
OUTPUT:
HTML Code:
Linux version 2.4.21-15.EL (bhcompile@bugs.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)) #1 Thu Apr 22 00:27:41 EDT 2004
Hope this helps.
Thanks
Nagarajan Ganesan.