[102151] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Get directory size

daemon@ATHENA.MIT.EDU (Dave Reed)
Tue Dec 1 16:58:55 1998

Date: Tue, 1 Dec 1998 17:02:30 -0500
From: Dave Reed <dreed@capital.edu>
To: redhat-list@redhat.com
In-Reply-To: <Pine.GSO.3.96.981201164621.3164A-100000@shell2.shore.net>
	(wes@shore.net)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

> From: "Wesley W. Owen" <wes@shore.net>

> If I go to /home
> 
> and I type in "du -sk" or whatever, I get all the subdirectories of each
> user.  Is there any easy way to get the summary for each user in K?
> 
> Example:
> 
> 10,000 Mary
> 5,000 Joe
> 23 Sue
> 
> Instead of
> 
> 1,000 Mary
> 4,000 Mary/website
> 5,000 Mary/website/graphics
> 2,500 Joe
> 2,500 Joe/mail
> 23 Sue
> 
> Etc. Etc?
> 
> Thanks for any/all help.  Also, need a command line way to do this, I
> don't run XWindows.

man du will tell you how to do it.

cd /home
du -sk *

-Dave


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post