On 5/9/25 9:06 PM, Dave Close wrote:
francis.montag...@inria.fr wrote:

No: du rounds up:

    echo > one
    du -m one
    1       one

That is correct, not rounded. 'echo' creates a file with one byte,
a newline (0x0a).


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.
--
_______________________________________________
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