Linux Command - uname
The Linux command uname is used to print out information about the kernel, OS, and platform.
Typically you would just use the command like this to get all info:
uname -a
You might use one of the other options for example if you need to set a variable in a script or command to grab a specific verison of a package.
Here is an example of that:
sudo apt-get --reinstall install linux-headers-`uname -r`