Created
December 4, 2018 09:05
-
-
Save bernik/40c5f661e55e9f9003ea730871140e71 to your computer and use it in GitHub Desktop.
ubuntu purge old kernels alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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