Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!hoptoad!amdahl!chuck From: chuck@amdahl.UUCP Newsgroups: alt.sources Subject: Re: Short 'n' dirty file space totaller Message-ID: <16130@amdahl.amdahl.com> Date: Tue, 13-Oct-87 20:46:02 EDT Article-I.D.: amdahl.16130 Posted: Tue Oct 13 20:46:02 1987 Date-Received: Thu, 15-Oct-87 06:45:46 EDT References: <239@ddsw1.UUCP> <8738@utzoo.UUCP> <2074@lsuc.UUCP> Reply-To: chuck@amdahl.amdahl.com (Charles Simmons) Organization: Amdahl Corp, Sunnyvale CA Lines: 26 In article <2074@lsuc.UUCP> dave@lsuc.UUCP (David Sherman) writes: >In article <8738@utzoo.UUCP> henry@utzoo.UUCP (Henry Spencer) writes: >>> Here's a real short, cheap-n-dirty disk usage tracker. [40 lines of C] >> >>Um, did you consider: >> >> du -s `awk -F: '{print $6}' /etc/passwd` | sed 's;.*/;;' > >Even simpler, for most systems, will be something like > du -s /u/* >(or /u?/* or whatever happens to match the directory/ies where >your users reside). > >David Sherman >{ uunet!mnetor pyramid!utai decvax!utcsri ihnp4!utzoo } !lsuc!dave Um... Suppose my users have files scattered all over the filesystem and not just in there home directories. How do I find out who the disk hogs are then? (Fortunately, on our system, someone implemented a command to do this sort of thing, and even documented the command line to use to find out the above. But what do mere mortals do on other Unix systems?) -- Cs