参考:
http://os.51cto.com/art/201012/240726_1.htm
http://blog.csdn.net/wisgood/article/details/17316663
df
查看分区
df -h 用容易读的方式显示分区大小的信息
du
查看文件,文件夹大小
-h 同df中的-h参数,用容易读的方式显示
-s 只显示文件夹本身,而不递归显示(默认是递归-a)
所以,查看一个文件夹/home/harryhare/test的大小,使用
du -sh /home/harryhare/test
另外一个可能会用到形式是
du -h --max-depth=1
另外,容易混淆的还有一个fdisk
fdisk 用来管理硬盘分区
具体使用参考:https://help.aliyun.com/document_detail/ecs/quick-start-for-linux/format.html?spm=5176.docecs/quick-start-for-linux/quick-start-for-Linux.2.4.goTF57