clean /tmp after reboot

Alvin info at alvin.be
Mon Feb 15 13:08:42 UTC 2010


On 15/02/2010 13:45, Amedee Van Gasse (ub) wrote:
> On Mon, February 15, 2010 13:15, Max Freitag wrote:
>> Hello,
>>
>> did someone now, how to clean the /tmp directory after a reboot? The
>> "TMPTIME=0" in /ets/default/rcS is set but the /tmp is never empty.
>>
>> Anny Idea? I think only the files with me as owner will not be deletet.
> 
> I know of two ways to clean /tmp after a reboot:
> 
> 1) mount /tmp (and /var/tmp) as a tmpfs (in memory). Only use that if you
> have enough RAM. I have 6 GiB. Put the following in /etc/fstab:
> [...]
> 
> Both methods are not Ubuntu specific, they work for all Linux distributions.
> In other words: these are probably not the "Ubuntu recommended" methods.
> But they work.

(Solaris does a similar thing) It might become the default method for
Ubuntu too.
See https://blueprints.launchpad.net/ubuntu/+spec/server-karmic-tmp-as-tmpfs




More information about the kubuntu-users mailing list