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

Re: [cobalt-users] RE: The filesystem [/var] is getting very full...



> How can I find out what is growing in the /var directory? 

Suggest you write a script to store the size of all files over a certain
size, run it nightly, and see which ones 1) are the biggest, and 2) grow
the most.

> What command would I use to list the contents of /var from 
> largest directory to smallest?

'Largest directory' is not very meaningful in unix.  A directory's size 
is simply the number of files it contains.  Suggest you address it on a
per-file basis.  The following script will provide a beginning:

find /var -type f -size +1024k -printf "%k %p\n"

It will print out the size and name (including path from /var) of files
in excess of 1MB in /var.  Modify to suit, then store as a script.  Add
it to cron, and see which ones 1) are the biggest, and 2) grow the most.

tim

--