Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 11:32:17 +0100 (CET)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Human readable df
Message-ID:  <199911301032.LAA01715@dorifer.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help
Stephen McKay wrote in list.freebsd-hackers:
 > On Tuesday, 30th November 1999, Warner Losh wrote:
 > > Filesystem    Size   Used    Avail Capacity Mounted on
 > > /dev/da0s1a  62.0M  31.0M  26.1M    54%     /
 > > /dev/da0s1e   192M   167M  9.22M    95%     /usr
 > > /dev/da0s1d  61.4M  11.3M  45.2M    20%     /var
 > > /dev/da0s1f   288M   247M  18.4M    93%     /usr/local
 > > /dev/da0s1g  2.17G  1.88G   122M    94%     /home
 > > procfs       4.00K  4.00K     0B   100%     /proc
 > > /dev/sd1a     990M   376M   534M    41%     /jaz
 > > /dev/da2s4c  1.94G  1.72G  68.0M    96%     /hawk
 > > /dev/da3s4a  3.93G  1.95G  1.67G    54%     /u
 > 
 > Add a 'df -h' if you like, but to me this looks like an unreadable jumble
 > of letters and digits.

FWIW, I agree whole-heartedly.  I think -k output is much more
readable than the above, because you have an immediate "visual"
overview of the sizes.

What I'd like to have would be an option that inserts thousands
separators ("," or whatever your locale settings say) into the
default display:

Filesystem    1K-blocks        Used      Avail  Capacity  Mounted on
/dev/da0s1a     105,893       5,117     97,600      5%    /foo
/dev/da0s1e     139,172         261    138,911      1%    /bar
/dev/da0s1d  17,641,178  15,931,150  1,710,028     91%    /bar/baz
/dev/da0s1f     262,133     167,310     86,960     66%    /mumble
/dev/da0s1g  17,641,178  16,462,303  1,178,875     94%    /laber
/dev/da0s1h   8,782,097   4,605,191  4,176,906     53%    /fasel
mfs:33          297,663           2    297,661      0%    /tmp
procfs                4           4          0    100%    /proc

This would be esay to implement and improves readability a lot,
IMO.

I'd send-pr a patch, if there's a chance that it will be
comitted (I'd suggest "-s" for "separators").  Or does this
start to get feeping creaturism...?

Regards
   Oliver

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
                                         (Terry Pratchett)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911301032.LAA01715>