Created
August 18, 2014 17:01
-
-
Save Swop/af36041fc71aedfb6d4d to your computer and use it in GitHub Desktop.
Delete old Linux kernels (Ubuntu)
This file contains 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
dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic|linux-image-extra-$(uname -r)" |while read n;do apt-get -y remove $n;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment