Created
May 14, 2022 11:42
-
-
Save gmolveau/f494dd8dba0e97d1db775924a7f384d8 to your computer and use it in GitHub Desktop.
free space remove old kernels linux ubuntu
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
sudo apt-get purge $(sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`) | |
sudo apt-get autoremove | |
sudo apt autoremove | |
sudo update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment