When does /tmp get cleared?

Posted by John Lawrence Aspden on Server Fault See other posts from Server Fault or by John Lawrence Aspden
Published on 2012-04-06T15:09:36Z Indexed on 2012/04/06 17:32 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

I'm taking to putting various files in /tmp, and I wondered what the rules on deleting them are?

I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu and Fedora desktop versions.

But a nice general way of finding out would be a great thing.

Even better would be a nice general way of controlling it! (Something like 'every day at 3 in the morning, delete any /tmp files older than 60 days, but don't clear the directory on reboot')

© Server Fault or respective owner

Related posts about linux

Related posts about unix