饭叔的知识整理

如何查看目录大小

du -h -s *

$ sudo du -h -s *
255M    bin
8.0K    games
24M     include
520M    lib
0       lib64
228M    local
20M     sbin
1.3G    share
4.0K    src

-h 人类模式 -s 总结

参考

http://superuser.com/questions/554319/bash-display-each-sub-directory-size-in-a-list-format-using-1-line-command