ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Hack:   Playing Hunt the Disk Hog
Subject:   another (better?) way to do this
Date:   2003-07-26 16:23:13
From:   anonymous2
Response to: another (better?) way to do this

Or:
ls -a | grep -v -e '^\.\+$' | xargs -i du -cks {} |sort -rn |head -11


or even:
ls -a | grep -v -e '^\.\.$' | xargs -i du -cks {} |sort -rn |head -11
which has the nice side effect of showing the total size of the directory (obviously the contents of the directory are bigger than the largest file in the directory).


1 to 1 of 1
  1. another (better?) way to do this
    2003-07-26 16:23:31  anonymous2 [View]

    • another (better?) way to do this
      2003-12-23 03:45:20  anonymous2 [View]

    • another (better?) way to do this
      2003-12-23 03:43:34  anonymous2 [View]

      • another (better?) way to do this
        2004-09-16 12:16:56  kj6loh [View]

1 to 1 of 1