@iBugOne 这个默认貌似是不同发行版不一样? Google 'du 默认输出单位' 不少提及是 kb 为默认单位
ynyounuo
2022-04-18 07:11:13 +08:00
@azev Posix compliant 的单位是 512 bytes ,所以 GNU du 设置了 POSIXLY_CORRECT=1 的话就会用 512 bytes ,BSD du 也一般是 default to 512 bytes
> The use of 512-byte units is historical practice and maintains compatibility with ls and other utilities in this volume of POSIX.1-2017. This does not mandate that the file system itself be based on 512-byte blocks.