Re: Disk usage information of a user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El mar, 21-12-2004 a las 15:06 +0100, nodata escribió:
> > El mar, 21-12-2004 a las 21:41 +0800, Lai Zit Seng escribiÃ:
> >> On Tue, 21 Dec 2004, Paul Howarth wrote:
> >> >>  On my server I have 150 users, and their Home folders are located in
> >> the
> >> >> /home directory.
> >> >> the question is, how I can see the DISC USAGE for each user ?.
> >
> > try
> >
> > # du --max-depth=1 -h
> 
> cd /home
> du -sk * | sort -n

Well, I really use this script, which sorts the output:

#!/bin/bash
for a in `du --max-depth=1 --block-size=1024 | sort -n |cut -f 2 -d '.'|
grep '/'|cut -f 2 -d '/'`
do
        du $a --max-depth=0 -h
done
echo Total:
du --max-depth=0 -h

-- 
Rodolfo Alcázar (rodolfo.alcazar@xxxxxxxxxxxx)
Administrador datos y red - Padep/GTZ
La Paz, Bolivia


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux