[ale] cleaning out /tmp

Charles Shapiro hooterpincher at gmail.com
Tue Sep 4 10:03:20 EDT 2007


Uh hmm. Look up tmpwatch(8)  ( http://linux.die.net/man/8/tmpwatch ) for
your distro. This utility grovels through /tmp and removes files older than
a configured number of hours. It usually runs as a daily cron job through
/etc/cron.daily. I can see that RedHat, Debian, and Gentoo distros include
it in some form.

I like this approach because it keeps /tmp reasonably clear, but files there
are still preserved through a reboot -- handy if you tend to use /tmp to
stash stuff you've downloaded or intermediate files you're working on, and
the power in your house occasionally flips off or the cat trips over your
powerstrip.

-- CHS


On 9/2/07, Paul Cartwright <paul_tbot at pcartwright.com> wrote:
>
> I just noticed, as I was trying to figure out my email issue, that there
> were
> lots of old files in /tmp.
> yet I know I've rebooted twice today.
> Is there a good way to clean out /tmp??
> cronjob ?
> I basically went to single user mode, and did:
> cd /tmp
> rm -r *
> reboot
>
> --
> Paul Cartwright
> Registered Linux user # 367800
> Ubuntu User number is # 12459
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list