Paging Matthew Seaman

Andy Greenwood greenwood.andy at gmail.com
Fri Jan 4 08:45:00 PST 2008


Paul Schmehl wrote:
> --On Friday, January 04, 2008 10:03:45 -0600 Tim Daneliuk 
> <tundra at tundraware.com> wrote:
>
>> Paul Schmehl wrote:
>>> I figure if anyone knows the answer to this off the top of their head,
>>> Matthew will.
>>>
>>> I've been reading the man pages for du and df, but I can't find the
>>> right combination.  I'd like to get the type of output that df -h gives
>>> you but only for one mount point or even one directory.  Is there a 
>>> tool
>>> that can do that? (IOW, I'd like to run du -h but only get the totals
>>> for directories.)
>>>
>>
>> du -hd1
>
> That's not what I'm looking for.  That will return *files* and 
> directories one level deep.  I want directories *only* all levels deep.
>
what about "find . -type d | xargs du -h"
Not exactly one command, but you could easily alias it.


More information about the freebsd-questions mailing list