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

Re: How to enable Debian to automatically clear the tmp directory



Am 2008-08-28 12:05:08, schrieb Stackpole, Chris:
> I second the cronjob. Just have something along the lines of:
> find /tmp -type f -ctime +1

CTIME is the wrong thing.  You need definitively ATIME  since  otherwise
you can kill your system

> Obviously, you will need to set ctime to be the number you need it to
> be. Once you know that the files it returns are indeed the ones you
> want to delete then add "-exec rm -rf {} \;" to the end and toss it
> into cron.
> 
> If someone has a better way, please comment.

;-)

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: