From owner-freebsd-questions Thu May 20 11:58:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 1BD9B15130 for ; Thu, 20 May 1999 11:58:11 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id NAA17834; Thu, 20 May 1999 13:58:03 -0500 (CDT) (envelope-from dan) Date: Thu, 20 May 1999 13:58:02 -0500 From: Dan Nelson To: OCD Support Cc: efinley@efinley.com, freebsd-questions@FreeBSD.ORG Subject: Re: Q: disk usage by directory Message-ID: <19990520135802.A17773@dan.emsphone.com> References: <37464db3.4158555@mail.afnetinc.com> <37444F5F.EF8D48AA@kawartha.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <37444F5F.EF8D48AA@kawartha.com>; from "OCD Support" on Thu May 20 14:07:28 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (May 20), OCD Support said: > What we do with our user's home directories as an example is simply use the du > command which gives us output like this: > > 4 ./idc/mail > 28 ./idc > 7 ./fido/mail > 8 ./fido/html > 1 ./fido/.tin/.news > 1 ./fido/.tin/.mail > > Then I guess if needed you could create a quick perl script to > eliminate sub directories and then email the report or dump it to > file? For our needs (we can our shell access server once a week for > example) we don't need anything fancy and this works fine..:) No perl needed. du -d . -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message