Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another means of getting a disk usage summary' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another means of getting a disk usage summary
Authored by: fds on Oct 21, '04 11:52:53AM

What's the difference between this and

du -hd1



[ Reply to This | # ]
du -hd1
Authored by: ssevenup on Oct 21, '04 06:34:20PM

Other than that it doesn't work? Or did you mean "du -d --max-depth=1"


---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
du -hd1
Authored by: ssevenup on Oct 21, '04 06:36:29PM

Actually I meant "du --max-depth=1 -h"

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
du -hd1
Authored by: fds on Oct 21, '04 10:50:04PM

Actually, the BSD version of du included with Mac OS X doesn't even understand the long --max-depth form. That's a GNU fileutils du thing.

On checking the URL of the site, I see MacOSXHints and not LinuxHints.
(Although Fink and similar might also kindly mess up your system and install GNU fileutils when you don't want it.)



[ Reply to This | # ]
du -hd1
Authored by: fds on Oct 21, '04 10:44:13PM

Of course it does work - in Mac OS X Panther 10.3.5, that is.

Is the shorthand form a new feature compared to earlier releases? I doubt that. Perhaps you are using a different version of "du" than the one installed by Apple.

Check that
command -V du
points to /usr/bin/du.



[ Reply to This | # ]