uname

Gets information about currently running Linux system.

information about the kernel:

uname -r

All information:
uname -a