ToddAndMargo via users wrote:

>Actually, it creates a file that is allocated 4096 bytes.
>
>$ echo > one
>
>$ du -m one
>1      one
>
>$ du --block-size=1 one
>4096   one
>
>I believe it is called a "cluster", but I may be wrong
>on the name.

Sorry, I missed (or ignored) the "-m". But representing one byte as
its allocated space (block size) is not what most people think of as
rounding, at least in the decimal sense and likely not in the binary
sense, either. And the increase is not due in any sense to "du"; the
size of a block is related to the filesystem and the storage medium.
So it would be wrong to say that "du rounds up": "du" just reports
what the other parts of the system tell it.
-- 
         Dave Close, Compata, Irvine CA       +1 714 434 7359
       d...@compata.com              dhcl...@alumni.caltech.edu
              "Change is good. You go first." -- Dilbert


-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to