Women in Technology

Hear us Roar



Hack:   Playing Hunt the Disk Hog
Subject:   another (better?) way to do this
Date:   2003-12-23 03:45:20
From:   anonymous2
Response to: another (better?) way to do this

Maybe you will like this one.
ls -A don't show the current and parent directory (.&..) so "du" don't go up.


ls -A | grep -v -e '^\.\.$' |xargs -i du -ks {} |sort -rn |head -11 | awk '{print $2}' | xargs -i du -hs {}