Created
May 18, 2016 18:00
-
-
Save cruzer45/8096ece9bf8a0f0339cd3c95ca939353 to your computer and use it in GitHub Desktop.
Clean full ubuntu boot partition
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
dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |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
This one is courtesy of user paran0ia on
http://ubuntuforums.org/showthread.php?t=1435818