Last active
May 11, 2020 21:32
-
-
Save cmbaughman/2039dbd58a9b276dae0425dc93c1342b to your computer and use it in GitHub Desktop.
Recover Free Space in Linux
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 autoremove | |
sudo apt clean | |
sudo apt-get autoclean | |
sudo journalctl --vacuum-time=3d | |
rm -rf ~/.cache/thumbnails/* | |
set -eu | |
snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment