3

我有一个文件 作为答案du -b filename给出67108864(应该以字节为单位),而 du filename给出65604(应该以千字节为单位)。
但是,它应该67108864/1024 = 65536作为答案返回。

我查看了 man 条目du,但找不到答案。
我错过了什么?

我在 64 位机器上运行 Ubuntu 12.04 版。

4

1 回答 1

2

-b不仅仅是字节:

  -b, --bytes           equivalent to `--apparent-size --block-size=1'
  --apparent-size   print apparent sizes, rather than disk usage; although
                      the apparent size is usually smaller, it may be
                      larger due to holes in (`sparse') files, internal
                      fragmentation, indirect blocks, and the like
于 2014-04-16T12:17:36.083 回答