Skip to content

Instantly share code, notes, and snippets.

@bidulock
Last active February 23, 2016 18:41
Show Gist options
  • Save bidulock/0b3b5933a7c7c146eb81 to your computer and use it in GitHub Desktop.
Save bidulock/0b3b5933a7c7c146eb81 to your computer and use it in GitHub Desktop.
Purge older kernels
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment