Skip to content

Free Disk Space on Ubuntu

du -cha --max-depth=1 / | grep -E "M|G" 

(with sudo)

Then drill into the larger files

du -cha --max-depth=1 /home/amin/.cache | grep -E "M|G" 

The "M|G" arg means it will only print files with sizes in MB or GB. You can add "T" to include TB.