Last active
July 13, 2023 16:55
-
-
Save s-stude/fa2428771055958398b0b25157731a09 to your computer and use it in GitHub Desktop.
Ubuntu Helpers
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
# figure out disk space | |
df -h | |
# figure out what eats space | |
# https://askubuntu.com/a/506118/445856 | |
du --max-depth=1 --human-readable / | sort --human-numeric-sort | |
# kill /var/log/journal files | |
sudo journalctl --vacuum-size=500M | |
# interactive ui to go through folders | |
ncdu -x / | |
## DOCKER LOG FILE SIZE | |
docker ps -aq | xargs -I '{}' docker inspect --format='{{.LogPath}}' '{}' | xargs ls -lh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment