Daily tip

Today we will start our daily – hopefully – post with a trick or solution to common and uncommon Linux tasks and problems. So stay tuned! Note that all command lines prefixed with a # must be run as root, with a $ can be run by a normal user.

How to remove older kernel in linux?

Sometimes is necessary to free up some space, especially when the /boot directory is on a different partition with space constraints.

#yum install yum-utils

#package-cleanup –oldkernels –count=2

It will keep only two kernels and not remove the current running kernel; so make sure you are running the latest Kernel.