This is the command purge-old-kernels that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
purge-old-kernels - remove old kernel and header packages from the system
SYNOPSIS
purge-old-kernels [--keep N] [*]
DESCRIPTION
This program will remove old kernel and header packages from the system, freeing disk
space. It will never remove the currently running kernel. By default, it will keep at
least the latest 2 kernels, but the user can override that value using the --keep
parameter. Any additional parameters will be passed directly to apt-get(8).
This program requires administrative access.
EXAMPLE
sudo purge-old-kernels --keep 3 -qy
Use purge-old-kernels online using onworks.net services