Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5
| ← Previous revision | Revision as of 04:29, 3 February 2026 | ||
| Line 24: | Line 24: | ||
|
The Single Unix Specification (SUS) specifies that space is reported in blocks of 512 bytes, and that at a minimum, it reports the file system names and the amount of free space. Using 512-bytes as the unit of measure is a historical practice and maintains compatibility with <code>[[ls]]</code> and other commands. Notably, the file system need not be constrained to internally use 512-byte blocks. The {{code|-k}} option was added as a compromise measure. It was agreed by the standard developers that 512 bytes was the best default unit because of its complete historical consistency on [[System V]] (versus the mixed 512/1024-byte usage on [[BSD]] systems), and that a {{code|-k}} option to switch to 1024-byte units was a good compromise. Users who prefer the more logical 1024-byte quantity can use <code>[[Alias (Unix shell)|alias]]</code> to map {{code|df}} to {{code|df -k}} without breaking many historical scripts relying on the 512-byte units.
|
The Single Unix Specification (SUS) specifies that space is reported in blocks of 512 bytes, and that at a minimum, it reports the file system names and the amount of free space. Using 512-bytes as the unit of measure is a historical practice and maintains compatibility with <code>[[ls]]</code> and other commands. Notably, the file system need not be constrained to internally use 512-byte blocks. The {{code|-k}} option was added as a compromise measure. It was agreed by the standard developers that 512 bytes was the best default unit because of its complete historical consistency on [[System V]] (versus the mixed 512/1024-byte usage on [[BSD]] systems), and that a {{code|-k}} option to switch to 1024-byte units was a good compromise. Users who prefer the more logical 1024-byte quantity can use <code>[[Alias (Unix shell)|alias]]</code> to map {{code|df}} to {{code|df -k}} without breaking many historical scripts relying on the 512-byte units.
|
||
|
The command first appeared in [[Ancient Unix |Version 1 AT&T Unix]].<ref>{{man|1|df|FreeBSD}}</ref> The command is part of the [[X/Open]] Portability Guide since issue 2 of 1987. It was inherited into the first version of [[POSIX]] and the [[Single Unix Specification]] (SUS).<ref>{{man|cu|df|SUS}}</ref> The implementation of {{code|df}} bundled in [[GNU]] [[coreutils]] was written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.<ref>{{man|1|df|ManKier}}</ref> The command is available for [[Windows]] via [[UnxUtils]].<ref>{{Cite web|url=https://unxutils.sourceforge.net/|title=Native Win32 ports of some GNU utilities|website=unxutils.sourceforge.net}}</ref>
|
The command first appeared in [[Ancient Unix |Version 1 AT&T Unix]].<ref>{{man|1|df|FreeBSD}}</ref> The command is part of the [[X/Open]] Portability Guide since issue 2 of 1987. It was inherited into the first version of [[POSIX]] and the [[Single Unix Specification]] (SUS).<ref>{{man|cu|df|SUS}}</ref> The implementation of {{code|df}} bundled in [[GNU]] [[coreutils]] was written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.<ref>{{man|1|df|ManKier}}</ref> The command is available for [[Windows]] via [[UnxUtils]].<ref>{{Cite web|url=https://unxutils.sourceforge.net/|title=Native Win32 ports of some GNU utilities|website=unxutils.sourceforge.net}}</ref>
|
||
|
==Use==
|
==Use==
|
||
