On 2021/11/07 16:07, s...@sdf.org wrote: > >Synopsis: df(1) missing -m and -g options > >Category: Userland > >Environment: > System : OpenBSD 7.0 > Details : OpenBSD 7.0 (GENERIC.MP) #232: Thu Sep 30 14:25:29 MDT > 2021 > > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > df(1) is missing the standard options to display size units in > Megabytes or Gigabytes. Yes, I know about -h, and that is unhelpful, > just like it is on Linux. > >How-To-Repeat: > df -m > df -g
These are not standard options. While the coreutils version of df common on Linux has an undocumented -m option it does not have -g. Solaris' df does have -g, but it has a different use: "Prints the entire statvfs(2) structure". I wouldn't object to -m as those OS which have the -m flag are using it for megabytes display. But the inconsistency for -g makes it seem a bad idea to support. (-k is the only size formatting which is an _actual_ standard).