Linux: What is using up disk space?

27 April 2009

du -m | sort -nr | head

du -m

summarises disk usage from current path recursively (in megabytes)

sort -nr sorts the output numerically in reverse

head restricts output to the top 10 lines

adapted from Linux Reviews