Skip to content

Instantly share code, notes, and snippets.

@bernik
Created December 4, 2018 09:05
Show Gist options
  • Save bernik/40c5f661e55e9f9003ea730871140e71 to your computer and use it in GitHub Desktop.
Save bernik/40c5f661e55e9f9003ea730871140e71 to your computer and use it in GitHub Desktop.
ubuntu purge old kernels alias
alias clean_boot='echo 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