bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#81360: df -P seems to use wrong format


From: Collin Funk
Subject: bug#81360: df -P seems to use wrong format
Date: Sat, 04 Jul 2026 14:51:08 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Christoph,

Christoph Anton Mitterer <calestyo@scientia.org> writes:

> As per POSIX when using -P, the format should be as given in the STDOUT
> section of the page below:
> https://pubs.opengroup.org/onlinepubs/9799919799/utilities/df.html
>
> POSIX has no type column at all, the headers don't match either and the
> values should be in 512B or 1KiB units.

I see that you noticed you had an alias with -T, so deleting my
explanation for that. :)

The block size discrepancy has a history behind it [1]. Myself, and
likely most other people, prefer 1024 byte blocks. People who have other
preferences can do either of the following:

    $ POSIXLY_CORRECT= df | head -n 1
    Filesystem     512B-blocks       Used  Available Use% Mounted on
    $ df --block-size=512 | head -n 1
    Filesystem     512B-blocks       Used  Available Use% Mounted on

Collin

[1] https://en.wikipedia.org/wiki/POSIX#512-_vs_1024-byte_blocks





reply via email to

[Prev in Thread] Current Thread [Next in Thread]