Created
November 22, 2021 14:41
-
-
Save skvskv/e4e3bc0d68a01603e999e8aa17a0155f to your computer and use it in GitHub Desktop.
Free space in (ubuntu) linux
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
# journalctl --disk-usage | |
sudo journalctl --vacuum-time=1d # sudo journalctl --vacuum-size 10M | |
snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do sudo snap remove "$snapname" --revision="$revision"; done | |
sudo docker container prune -f && sudo docker image prune -f # lightweight | |
docker volume ls -qf dangling=true | xargs -r docker volume rm # Drop volumes not referenced by any container | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment