On Fri, Mar 28, 2003 at 12:35:47PM +0800, Aris Santillan wrote:
> how can i find which folder inside /var have the largest file size?
The command
# du -sm *
normally does a good job of letting you know the sizes of the contents
of a directory. Directories in that directory will get their sizes
summed up. You can pipe its output to sort, to get a useful list of
where to start trimming:
# du -sm * | sort -n
Which you can pipe to less if you need paging, for directories with many
contents.
# du -sm * | sort -n | less
> 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..
Note that email normally goes to /var, as do logs. Use the above
commands to find the largest directory, and start moving down the tree
to find something useful to purge. /var/log is normally the best place
to start. /var/spool and /var/mail might be trimmable, too. :)
--> Jijo
--
Federico Sevilla III : http://jijo.free.net.ph : When we speak of free
Network Administrator : The Leather Collection, Inc. : software we refer to
GnuPG Key ID : 0x93B746BE : freedom, not price.
_
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]