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


du -hd1 | 25 comments | Create New Account
Click here to return to the 'du -hd1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
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 | # ]