TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:1777] directory sizes



you can use -s to create summery's.

Jeff

On Thu, 15 Oct 1998, Ben Luey wrote:

> Is there a way to get du to count the size all subdirectories as one
> entity. I'd like to see a list of only the next level directories with the
> size of the these directories and all of their subdirectories.
> 
> Thanks,
> ben
> 
> > 
> >     Nate> Try 'du'.  -Nate Carlson The Infinite Loop
> >     Nate> natecars@infiniteloop.com
> > 
> > 
> > And if you want to sort the directories (this will put the largest
> > last):
> > 
> > 	du | sort -n 
> > 
> > (if you want that is largest to smallest: du | sort -rn)
> > 
> > This can take a while. One problem with du is that it can only show
> > the size of either the entire dirctory tree below the path it is given 
> > or the size of items in the current directory. So if you only want
> > things one or two directories deep you need to look elsewhere. find is 
> > good for this or you could pipe the results of du to a perl/awk script.
> > 
> > Andrew
> > 
> >     Nate> On Wed, 14 Oct 1998, Ben Luey wrote:
> > 
> >     >> How can I find out the size of a directory and all its
> >     >> subdirectories? Is there a way to do a ls that will sort all
> >     >> directories by size (only showing the next level directories
> >     >> and the size including subdirectories)?
> >     >> 
> >     >> Thanks,
> >     >> 
> >     >> Ben
> >     >> 
> >     >> Ben Luey lueyb@carleton.edu ICQ: 19144397
> >     >> 
> >     >> 
> >     >> ---------------------------------------------------------------------
> >     >> To unsubscribe, e-mail:
> >     >> tclug-list-unsubscribe@listserv.real-time.com For additional
> >     >> commands, e-mail: tclug-list-help@listserv.real-time.com Try
> >     >> our website: http://tclug.real-time.com
> >     >> 
> > 
> > 
> >     Nate> ---------------------------------------------------------------------
> >     Nate> To unsubscribe, e-mail:
> >     Nate> tclug-list-unsubscribe@listserv.real-time.com For additional
> >     Nate> commands, e-mail: tclug-list-help@listserv.real-time.com Try
> >     Nate> our website: http://tclug.real-time.com
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > Try our website: http://tclug.real-time.com
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>