Re: tmpwatch apparently not doing anything

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim wrote:
> I've seen a few people mention that /tmp/ files don't seem to be
> removed, periodically, as they're supposed to, and I notice the same
> thing.

For what it's worth, the following line in /etc/fstab seems to work for
me...

none        /tmp          tmpfs defaults,nodev,noexec 0 0

What this means is that /tmp files get stored in virtual memory, not on
a regular filesystem, and whenever the machine is rebooted the whole
/tmp filesystem is wiped.

You may not want the nodev or noexec flags.

(The data will physically either be in memory or in the swap file,
depending on how much the data is being used and how much real memory is
being used.)

James.

-- 
E-mail address: james | 'Short for "Sic Transit Gloria Humanorum", which is
@westexe.demon.co.uk  | Latin for "There goes the neighbourhood!"'
                      |     -- Menno Willemse


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux