Linux directory and disk size commands


linux directory size - really helpful

Don't forget df to find free drive space and hard disk usage.

du -lh lists them in order by size in easy to read format

du --max-depth=1 /home/ | sort -n -r

du -k | sort -nr | more this finds folders taking most space

du -sc /* | sort -nr

du -s /* | sort -n | cut -f 2- | while read a; do du -sh “$a”; done