On Sul, 2004-12-12 at 21:40, Peter E. Abresch Jr. - at Pepco wrote:
> I was planning to perform some housekeeping cleanup on a regular basis for
> /tmp by including the following command in a cron:
> 
> find /tmp -atime +30 -type f -print0 | xargs -0 rm

There are better tools for this (tmpwatch for example) that know a bit
more about where to be careful.

> I was going to do the same for the /var directory and got to thinking that
> maybe I will get more than I bargain for. What is everyoneâs opinion about
> removing all files that have not been accessed in 30 days for directory
> /var? Am I being over zealous?

Probably. If someone leaves mail for a month should it vanish ? /var/tmp
is temporary but the rest of /var is merely writable not always
temporary.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to