in reply to sort du -sH output to find that disk hog

What I do:
du -sk | sort -rn | head

Actually, I usually do:

du -sk > du sort -rn du | head
since I'm likely to want to look at it over and over, and du -sk on /home takes me about a half-hour (/home is huge and network-mounted).
------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re^2: sort du -sH output to find that disk hog
by Anonymous Monk on Aug 10, 2004 at 13:09 UTC
    I use: du -am / | sort -nr | head -500 > /hogdirs.txt &