如何查找文件系统大文件
2019-05-22 16:10:09

可以通过执行以下步骤进行查找:

  1. 执行 df 命令,查看磁盘分区使用情况,例如 df -m。

  2. 执行 du 命令,查看具体文件夹的大小。例如 du -sh ./*,du -h --max-depth=1|head -10。

  3. 执行 ls 命令,列出文件和文件大小,例如 ls -lSh。
    您也可以通过 find 命令直接查看特定目录下的文件大小,例如 find / -type f -size +10M -exec ls -lrt {} ;。