How to check which kernel is running on your system

<pre lang="bash">
uname -sr

List all kernels installed on the system.

<pre lang="bash">
rpm -q kernel

Removing old kernels using package-cleanup. This keeps 2 kernels on the system.

<pre lang="bash">
yum install yum-utils
package-cleanup --oldkernels --count=2