Sunday, May 15, 2005

determine top 10 disk usage

This command will display, in a sorted order, the top 10 disk usage from the current directory.

du -cks * | sort -rn | head -11

1 comment:

  1. Know of a way to do this sort with -h?
    du -ch * | sort -rn would be pretty nice but of course that doesn't sort right..

    ReplyDelete