Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jan 2008 11:44:54 -0500
From:      Andy Greenwood <greenwood.andy@gmail.com>
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Paging Matthew Seaman
Message-ID:  <477E6286.7020007@gmail.com>
In-Reply-To: <C744FBF9115EEDDECAE10B25@utd59514.utdallas.edu>
References:  <179863EA8C3D6945412CA598@utd59514.utdallas.edu>	<477E58E1.4010509@tundraware.com> <C744FBF9115EEDDECAE10B25@utd59514.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Schmehl wrote:
> --On Friday, January 04, 2008 10:03:45 -0600 Tim Daneliuk 
> <tundra@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.



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