bug#39850: "du" command can not count some files

2020-03-02 Thread Bob Proulx
Hyunho Cho wrote: > $ find /usr/bin -type f | wc -l > 2234 > > $ find /usr/bin -type f -print0 | du -b --files0-from=- | wc -l > Hard links. Files that are hard linked are only counted once by du since du is summing up the disk usage and hard linked files only use disk on the first usage.

bug#39850: "du" command can not count some files

2020-03-01 Thread Paul Eggert
I don't see a bug there, as the files you say "du" is not counting have counts of zero.

bug#39850: "du" command can not count some files

2020-03-01 Thread Hyunho Cho
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 19.10 Release:19.10 Codename: eoan $ uname -a Linux EliteBook 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ du --version du (GNU coreutils)