[TUHS] Command line options and complexity
Greg 'groggy' Lehey
grog at lemis.com
Sat Mar 14 14:35:05 AEST 2020
On Friday, 13 March 2020 at 21:45:21 +1100, Dave Horsfall wrote:
> On Fri, 13 Mar 2020, Greg 'groggy' Lehey wrote:
>
>>> -h is a gnuism, isn't it?
>>
>> It might have originated there, but then I would expect it to be spelt
>> '--produce-human-readable-output'. I haven't been able to establish from the
>> FreeBSD sources or commit logs when it was introduced. It would clearly have
>> been a reimplementation.
>
> It's in "df" as well, praise Cthulu:
>
> aneurin# df -h
> Filesystem Size Used Avail Capacity Mounted on
> /dev/ad0s1a 496M 302M 154M 66% /
> /dev/ad0s1d 2.9G 1.4G 1.2G 54% /usr
> /dev/ad0s1e 989M 581M 329M 64% /var
...
It also has the , option:
=== grog at eureka (/dev/pts/72) ~ 8 -> df -,
Filesystem 1048576-blocks Used Avail Capacity Mounted on
/dev/ada0p4 39,662 21,918 14,571 60% /
/dev/ada0p2 39,662 13,447 23,042 37% /destdir
/dev/ada0p5 3,705,520 1,831,345 1,577,733 54% /home
/dev/ada1p1 7,629,565 6,358,607 1,194,661 84% /Photos
I find it much easier to see the relative size like that.
Greg
--
Sent from my desktop computer.
Finger grog at lemis.com for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200314/ec02e0ba/attachment.sig>
More information about the TUHS
mailing list