Tuesday, September 6, 2011

How To List 10 Biggest Directory

How to list 10 biggest directories in whole system or such directory? These 2 commands can be used,either one :


1. du -x --block-size=1024K | sort -nr | head -10

2. du -a / | sort -n -r | head -n 10

No comments:

Post a Comment