RSS Feed

Get your kernel version

Need to know your kernel version? It’s simple, the following will output the version of your kernel.

uname -r

If you want to know full details of the kernel and system change the “-r” option for “-a”, like so:

uname -a

Returning your kernel information can be handy when you’re needing it in a batch script, or, for example, when downloading a file specific to your kernel. For example:

wget http://www.domain.tld/kernel-update/kernel-`uname -r`

The following would output similar to the following

http://www.domain.tld/kernel-update/kernel-2.6.24-25

It’s a pretty useful command to know.

Posted in Linux on the 19th June 2010

SPEAK YOUR MIND...

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

*