Save Disk
Get disk usage
# get usage
df -h
#find 20 lagest directory in /
sudo du -ah / | sort -rh | head -20
Docker
# remove all unruning docker images and caches
docker system prune -a
vim /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "10"
}
}
Journal Logs
Execute
sudo journalctl --vacuum-size=100M
sudo journalctl --vacuum-time=10d