Mastering the Art of Ubuntu Server Updates

How to clean up disk space on Ubuntu

Posted by

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
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

DevOps Help for You: CI/CD Pipeline Development

Hey there, fellow developers and cloud architects!

Guess what? I'm diving into offering DevOps support, focusing on CI/CD Pipeline Development.

So, here's the deal: I'm offering personalized help, packaged in a special startup friendly offer, so you don't have to stress about hiring extra hands.