Analyze Linux disk usage

Fixing a disk space problem on a Linux server without a graphical interface is tedious without the right command line tools handy.

Disk usage

A quick df -h  lists all disks and their current usage.

Find large files

To find large folders with files to clean up, you can use ncdu. Install it (sudo apt-get install ncdu ) and start it pointing to a certain folder.

ncdu /var/lib/jenkins/