[ale] cleaning out /tmp
James P. Kinney III
jkinney at localnetsolutions.com
Tue Sep 4 10:51:59 EDT 2007
On Tue, 2007-09-04 at 10:03 -0400, Charles Shapiro wrote:
> 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.
Or your 2 year old toddles into your office grinning like a loon and
says "Button!" and presses the power button on the UPS during a manic
multiple remote terminals open, transferring stuff between multiple
remote systems with 'screen' NOT being used...
>
> -- 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
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
James P. Kinney III
CEO & Director of Engineering
Local Net Solutions,LLC
770-493-8244
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Ale
mailing list