Need to know your kernel version? It’s simple, the following will output the version of your kernel.
If you want to know full details of the kernel and system change the “-r” option for “-a”, like so:
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
It’s a pretty useful command to know.