清单 5. 获得磁盘使用情况统计信息
$ du -sk *
20 admin
1020 appleby
45828 applicants
13264 buy
11704 dev
11200 finance
52 gordon
25720 mc
472 mcantrip
4340 mlists
120952 myeling
12 nutshell
1812 play
1104 postmaster
1468 quarantine
36 questions
78940 fhf
4156 fhfarc
2444 spam
清单 6. 获得每个文件夹的磁盘使用状态
$ find . -type d -exec du -sk {} \; |sort -t. +1
...
45828 ./applicants
1964 ./brady
616 ./brady/Article Comments
1304 ./brady/Editors
...
11200 ./finance
4160 ./finance/Banking
12 ./finance/Insurance
1192 ./finance/Other
5476 ./finance/Rewards
296 ./finance/Surveys
...
78940 ./sandra
...
460 ./sandra/Nutshell
3444 ./sandra/Orders
1484 ./sandra/SANDRA-general
40920 ./sandra/Sent Mail
1264 ./sandra/Tracey
1984 ./sandra/eBay
...
参考: 系统管理工具包: 监视邮件的使用情况
http://www.ibm.com/developerworks/cn/aix/library/au-satmonitormailusage/