【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 ,大部分原因是磁盘满了,这时就可以用这个命令检查各个文件夹空间的使用情况了

  

原文地址:https://www.cnblogs.com/bushe/p/3975608.html