On Tue, 28 Jan 2020 15:00:39 +1100, Jonathan Gray wrote:

> There are several commands which have a -k flag for scaling to
> kilobytes.
>
> For example:
> df
> du
> ls
> pstat
> quot
> swapctl
>
> Going down the list of unit names kmgtpezy some of these flags are
> already used.  So it would be hard to consistently use -m where -k is
> used.  Adding a flag to take a scalling factor, even if just using an
> additional char like 'm' to index into a table of scaling factors would
> use less flags.

That's a fair point.  It's not really reasonable to use a separate
option letter for every possible scaling factor.  The Linux du -B
option seems close to what we want, though it also appends a unit
for things like "du -Bm" which breaks sorting (though du -B1m works).

 - todd

Reply via email to