How do I check the running kernel version?
You can execute:
uname -r
It will display something like
3.13.0-62-generic
Found on https://askubuntu.com/questions/359574/how-do-i-find-out-the-kernel-version-i-am-running (view that QA to learn other commands you could use)
For Ubuntu
enter the command
# uname -r
will Print the kernel name
# uname -a
Will Print all Information
or else we can check with cat /proc/version
For Redhat and centos
# cat /etc/redhat-release
# lsb_release –a
dmesg | grep Linux
This command reads boot logs as it startup.
Output:
[ 0.000000] Linux version 4.9.0-8-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21)