苦逼的硬盘空间管理du df

df -h 看看你的系统盘的总的使用情况。。。。

du -h   当前目录下面什么都看了。。。

du -sh   当前目录总空间。


du -sh `ls`  当前目录下所有的文件夹含量。。。

显示前10个占用空间最大的文件或目录:
du -s * | sort -nr | head

du /home --max-depth=1 -h

--max-depth参数代表着要列出目录的深度

root@liu-laptop:/work_two/Linux-Android/src/eclair_2.1_farsight/build# du --time -h --max-depth=1
60K 2011-05-17 13:26 ./libs
5.6M 2012-05-26 09:07 ./tools
148K 2011-05-25 15:16 ./target
48K 2011-05-17 13:26 ./history
584K 2011-09-16 13:58 ./core
6.5M 2012-05-26 09:07 .

你可能感兴趣的:(苦逼的硬盘空间管理du df)