Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > df -h

df -h
Thread Tools
jhunt5247
Mac Enthusiast
Join Date: Mar 2002
Location: north america
Status: Offline
Reply With Quote
Nov 17, 2002, 10:39 PM
 
human readable.. anyone know how to get this in os/x? I remember there was some port you could download in netbsd to get this, but can't seem to find anything on os/x.
     
Camelot
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Nov 17, 2002, 11:03 PM
 
and by "human readable" you mean...?
Gods don't kill people - people with Gods kill people.
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Nov 17, 2002, 11:22 PM
 
Human readable means in easy to read units. For example (taken from my Linux box):
Code:
[[email protected] ~]$ du -sh * 76k dnetc_docs 212M documents 4.0k mbox 121M sandbox
As opposed to:
Code:
[[email protected] ~]$ du -s * 76 dnetc_docs 216504 documents 4 mbox 123676 sandbox
It's an extension of the GNU du command, and so that is what you want to install to get the option on OS X. Look here to start you on your way.
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
gorgonzola
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Nov 18, 2002, 07:41 PM
 
Originally posted by jhunt5247:
human readable.. anyone know how to get this in os/x? I remember there was some port you could download in netbsd to get this, but can't seem to find anything on os/x.
It's GNU FileUtils, and it's available in Fink. It also compiles clean straight from source if that's more your cup of tea. If you have Fink, however, just fink install fileutils and you should be on your way.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
jhunt5247  (op)
Mac Enthusiast
Join Date: Mar 2002
Location: north america
Status: Offline
Reply With Quote
Nov 18, 2002, 09:09 PM
 
Originally posted by Mactoid:

It's an extension of the GNU du command, and so that is what you want to install to get the option on OS X. Look here to start you on your way.
Thanks bud.
     
Camelot
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Nov 18, 2002, 11:12 PM
 
Originally posted by Mactoid:
Human readable means in easy to read units. For example (taken from my Linux
Oh, so you mean

df -k

rather than:

df

(who needs all that fink stuff when a simple man page will suffice?)
Gods don't kill people - people with Gods kill people.
     
gorgonzola
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Nov 19, 2002, 10:07 PM
 
Originally posted by Camelot:
Oh, so you mean

df -k

rather than:

df

(who needs all that fink stuff when a simple man page will suffice?)
People who would rather read it in MB or GB instead of converting things from kilobytes. df -k doesn't make it fully human-readable, it just changes the 512-block count to a 1K-block count, which is still pretty useless, given the size of drives nowadays.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:20 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,