【Linux命令】du -h --max-depth=1 /usr/local/

查看文件夹中各文件(夹)的大小

例如

du -h --max-depth=1 /usr/local/

应用:比如mysql 无法启动,提示:ERROR! Manager of pid-file quit without updating file ,大部分原因是磁盘满了,这时就可以用这个命令检查各个文件夹空间的使用情况了

  

posted @ 2014-09-16 18:41  捕蛇者说  阅读(942)  评论(0编辑  收藏  举报