On Friday 28 March 2003 12:35 pm, Aris Santillan wrote:

> hi
>
> how can i find which folder inside /var
> have the largest file size? its weird that
> my /var is 4GB and now it 99% of its total usage
> since i dont have database / mail server...
> just a basic setup of SMTP server. for use of mail
> scripts..
>
> thanks

if you really want a per directory total on the first-level children 
of var then do this as superuse:

for x in `find /var -type d -maxdepth 1 -mindepth 1`; do du -s $x; 
done | sort -rn

-- 
Deds Castillo
Infiniteinfo Philippines
http://www.infiniteinfo.com
Hiroshima '45, Chernobyl '86, Windows 95/98/2K
GnuPG keyID: 51261831
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
PROTECTED]

Reply via email to