SUMMARY: how to find how much space used by userid

From: Lynne Seamans (Lynne.Seamans@millersv.edu)
Date: Mon Jan 24 2000 - 15:20:54 CST


Thanks to all the following good folks who provided great ideas as to how to
sum up how much space a particular userid occupied across directories in a
given file system.

Basically, I got three categories of answers:

        1. use du on the users directory --- unacctable since these
user have stuff ALL OVER the place.

        2. 'find' piped into something or other like awk .. here's a
good example:
                
        find . -user jrevelt -exec ls -l {} \; | awk '{sum=sum+$5} END
{print "There are " sum " bytes, in " NR " files."}'

                Some of these got REALLY fancy with scripts and everything.
I really appreciated that, since I took them apart and learned how they
worked.

        3. And my personal favourite: the "quot" command. I had never
heard of this before, but you just type in 'quot -af', it takes a
while, but you get the amount of space per userid per file system. Just
EXACTLY what I needed in this case.

Again, thanks to the following fine folks:

Alex Natautama [Alex.Natautama@telecom.co.nz]
Arthur Darren Dunham [add@netcom.com]
Bertrand_Hutin@notes.amdahl.com
Cole, Jeff [Jeff.Cole@tfn.com]
Daniel Muiņo [dmuino@afip.gov.ar]
David Foster [foster@dim.ucsd.edu]
David Ledger [dledger@ivdcs.demon.co.uk]
David Massey [dmassey@e-one.com]
David Mitchell [davem@fdgroup.co.uk]
David Robillard [drobilla@Matrox.COM]
Demian Hanks [demian@csbs.utah.edu]
Dennis Martens [MARTENSD@health.qld.gov.au]
Drew Watson [dwatson@ns.encore.com]
Frank Sorenson [sorenson@traces.cs.byu.edu]
Ian Durkacz [I.Durkacz@sheffield.ac.uk]
Ian MacPhedran [Ian_MacPhedran@engr.USask.Ca]
Imre.Kolos@eth.ericsson.se
Isherwood Jeff C Contr AFRL/IFOSS [Jeff.Isherwood@rl.af.mil]
James Cannon [JCannon@calmit.unl.edu]
James Mularadelis [james.mularadelis@bms.com]
Jay Lessert [jayl@latticesemi.com]
Jeff Woolsey [woolsey@jlw.com]
JimF [j2freeman@pacbellwireless.com]
kevin@joltin.com
Larry Garrett [Larry_Garrett@csx.com]
Matthew Atkinson [m.atkinson@csl.gov.uk]
Matthew Stier [Matthew.Stier@fnc.fujitsu.com]
Michael DeSimone [michael@desimone.net]
Michael Miller [Michael.Miller@oyster.co.uk]
Moti Levy [mlevy@lannet.com]
mwang@tech.cicg.ml.com
Nicholas R LeRoy [nick.leroy@norland.com]
PETESADL@aol.com
Rashad.Al-Yawir@ii.uni.wroc.pl
Richard Felkins [richardf@gso.saic.com]
Rick von Richter [rickv@mwh.com]
robsonk@ebrd.com
Roger D Mcgraw, Jr [roger@ptac.com]
Salman Farooq TNG [Salman2@wipro.co.in]
Sandesh Tattitali [stattit@ochp.com]
SGauthier@domainpharma.com
Sid_Shapiro@bio-rad.com
Simon-Bernard Drolet [sbdrolet@M3iSystems.Qc.Ca]
Stefan Voss [s.voss@terradata.de]
Stephan Grund [stephan.grund@isst.fhg.de]
Steve Elliott [se@comp.lancs.ac.uk]
Sun System Admin [sysadm@its.brooklyn.cuny.edu]
Thiyagarajan V [thiyagu@siptech.co.in]
Timothy Lindgren [Timothy_Lindgren@enron.com]
Tobias Wahlgren [twa@gronaverket.se]
Troy Wollenslegel [troy@intranet.org]
Viet_Q_Hoang [vhoang@lucent.com]



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:02 CDT