Featured image of post linux du命令

linux du命令

Summarize device usage of the set of FILEs, recursively for directories.

  • -a 显示所有文件类型,不仅仅是文件,目录类型
  • -x 只计算指定目录的文件和子目录大小,不会跨越不同文件系统边界进行计算,用于多文件系统环境准确了解每个文件系统的磁盘使用情况,也可用于排除挂载点,只计算当前文件系统的空间占用
  • -m 以 1 Mb 为单位
  • -s 仅显示总计
Licensed under CC BY-NC-SA 4.0