Last active
August 29, 2015 14:23
-
-
Save e7d/6020a37d34289a89c79e to your computer and use it in GitHub Desktop.
Remove all unused kernels on Debian-based systems
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
#!/bin/sh | |
sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`) | |
update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment