Linux tricks, one-liners & shell magic

#!/bin/vpp.dk

Community Linux tricks, one-liners & shell scripts — searchable & formatted.

Category: disk-storage — 1 trick(s)

+ Add a New Trick

Find which directories are eating your disk space, sorted from largest to smallest.
bash
$ du -sh /* 2>/dev/null | sort -rh | head -20 # Show only current directory depth 1: du -sh ./*/ | sort -rh
Delete this trick? This cannot be undone.