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