I often try to memorize command options by looking up for what they stand for.
This time I couldn't find any source on that: why is quota -s
a --human-readable
alternative, what does s
stand for?
Using the light shed from the FreeBSD version of the quota
command, I would go for suffixes (my first choice being string).
-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
Megabyte, Gigabyte, Terabyte and Petabyte.
Either way, all here are best guesses ...
Slightly more informed guess. Looking into the -s
options of various coreutils commands and their interpretation in those commands, it seems like -s
is an option that can mean many different things in different commands. Following list shows meaning of the -s
option for the commands in parenthesis:
sleep
)uname
)chmod
(+/-))nl
, date
, seq
)cp
, install
, ln
, mv
, basename
)sort
, shred
, truncate
, test
)tty
, readlink
, csplit
)kill
, timeout
)tac
, pr
)du
)sum
)unique
)paste
)tr
, cat
)ln
)realpath
)fold
)fmt
)From the list, it looks like suffix is frequently used in the context of filename suffixes, so I will go with size.
Interestingly, the description of -s
in the man page of ls
sounds close to what the author might have in mind while choosing the -s
switch with quota
:
-s Display the number of file system blocks actually used by each file, in units of 512 bytes, where partial units are rounded up to the next integer value. If the output is to a terminal, a total sum for all the file sizes is output on a line before the listing. The environment variable BLOCKSIZE overrides the unit size of 512 bytes.
Based on the man page I would conclude that it stands for "size" or "space" or "showing" or perhaps "suffixes". From the quota
man page:
-s, --human-readable
option will make quota(1) try to choose units for showing limits,
used space and used inodes.
quota
option for "human-readable" is-h
(then you would not ask). – Ouki Mar 22 '14 at 19:59