why is the output of `du` often so different from `du -b`

后端 未结 5 2075
温柔的废话
温柔的废话 2020-11-29 05:47

why is the output of du often so different from du -b? -b is shorthand for --apparent-size --block-size=1. only using

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 06:16

    Compare (for example) du -bm to du -m.

    The -b sets --apparent-size --block-size=1, but then the m overrides the block-size to be 1M.

    Similar for -bh versus -h: the -bh means --apparent-size --block-size=1 --human-readable, and again the h overrides that block-size.

提交回复
热议问题