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.


