Clearing tmp files
sktsee
sktsee at tulsaconnect.com
Fri Oct 12 20:37:11 UTC 2007
On Fri, 2007-10-12 at 09:53 -0700, NoOp wrote:
> On 10/12/2007 08:34 AM, sktsee wrote:
> > On Fri, 2007-10-12 at 11:40 +0800, gup502 wrote:
> >> Hi All,
> >>
> >> I come from Mandriva. There is an option to set the system to clear
> >> temp files at boot. If that is not selected, the temp files will
> >> quickly add up. I do not see that option in Ubuntu. Is that required in
> >> Ubuntu?
> >>
> >> Cheers.
> >>
> >> Terence
> >>
> >> Send instant messages to your online friends http://au.messenger.yahoo.com
> >>
> >>
> >
> > The option is set by the variable "TMPTIME" in /etc/default/rcS. By
> > default it's set to 0 so that tmp is cleaned (with some exceptions) on
> > each reboot. man rcS for more info.
> >
>
> Sometimes it's a double-edged sword...
>
> You might find this an interesting read:
> https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/15179
>
> Over on the OpenOffice lists there have been many reports of some
> student losing an essay because OOo saves to /tmp & then /tmp gets wiped
> on startup. Obvious fix is to simply made a directly in home and reset
> the path in OOo (Tools|Options|OOo|Path) to the new temp directory. Same
> thing happens on Windows - they do all the work, faithfully setting the
> recover options to save every 15 min or so, then poof, they lose
> power/whatever and expect their work to have been saved... except /tmp
> is cleaned on reboot.
>
> Personally, I prefer to have /tmp cleaned on reboot... just be aware of
> applications that use /tmp rather than their own /tmp directory.
>
>
>
Huh, I hadn't noticed that. It's kinda odd given that OOo creates a
structure under ~/.openoffice.org2/user which includes a temp directory.
Oh well, \me sets temp path in OOo to ~/.openoffice.org2/user/temp.
Thanks for the tip!
--
sktsee
More information about the ubuntu-users
mailing list