Clearing tmp files
NoOp
glgxg at sbcglobal.net
Fri Oct 12 16:53:30 UTC 2007
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.
More information about the ubuntu-users
mailing list