The most useful way to use du, about 99% of the times I'm invoking it, is when a partition has run out of space and you aren't sure why. For example, the root partition:
du -x / | sort -n -r | more
The "-x" restricts du to examining only directories on root itself and not partitions mounted onto it. The sort command puts the biggest culprits at the top of the list.
Discussion on:
Message 2 of 3

































