Can I delete all files/directories under /tmp

G. Matthew Rice matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Fri May 14 14:50:39 UTC 2004


Jeremy Wakeman <cael-JTkAzvGkdyMrpQx6IzTi3laTQe2KTcn/@public.gmane.org> writes:
> files and dirs are deleted upon reboot, but some running programs might

Deletion on reboot is distribution dependent.  Some also [or instead] use
tmpwatch(8) to delete files after they haven't been accessed for a period of
time.

You can also control the complete wiping of /tmp on debian by changing the
TMPTIME setting in:

        /etc/default/rcS

I prefer the tmpwatch way because it is a daily cron job.  Debian seems to
only take care of /tmp on rebooting and do nothing afterwards.   Hmm, I just
checked and there is tmpreaper for debian [based on redhat's tmpwatch].  It
doesn't seem to get installed by default, though.

Pedantically yours,
-- 
g. matthew rice <matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org>                            starnix inc.
phone: 905-771-0017 x242                        thornhill, ontario, canada
http://www.starnix.com              professional linux services & products
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list