Discussion on:

Message 2 of 3
0 Votes
+ -
RE: Get the most from the du and df commands
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.
Posted by dan.franklin@...
24th Jul 2007