前面我们写了BT宝塔面板 磁盘爆满处理方法 图文教程,近日发现服务器被莫名其妙的塞满了,下面我们记录一下如何从/根目录下手查找大文件的位置。
根目录/查找大文件
du -h --max-depth=1 /

依次查找进入 /www 目录
du -h --max-depth=1 /www/

这里可以适当的调整 --max-depth
得参数,就是文件夹深度。
依次往下进一步查找即可。
');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}/*]]>*/
前面我们写了BT宝塔面板 磁盘爆满处理方法 图文教程,近日发现服务器被莫名其妙的塞满了,下面我们记录一下如何从/根目录下手查找大文件的位置。
du -h --max-depth=1 /
du -h --max-depth=1 /www/
这里可以适当的调整 --max-depth
得参数,就是文件夹深度。
依次往下进一步查找即可。
作者:
标签