Find largest files
du -a /var/ | sort -n -r | head -n 20
Shell commands
Collection of commands I use to clean up disk space on Ubuntu servers
sudo apt-get clean
sudo python3 -m pip cache purge
sudo docker system prune -a -f
sudo docker system prune -a --volumes -f
ncdu
fdups
sync
sudo journalctl --disk-usage
sudo journalctl --vacuum-size=100M
Cleanup disk space in nexus
cd /nexus-data/blobs/default/content
grep -l "deleted=true" */*/*properties | sed -En 's/properties/bytes/p' | gawk '{print "echo \"\" > " $1}' | bash