User: Password:
|
|
Subscribe / Log in / New account

Temporary files: RAM or disk?

Temporary files: RAM or disk?

Posted Jun 5, 2012 15:40 UTC (Tue) by nybble41 (subscriber, #55106)
In reply to: Temporary files: RAM or disk? by roblucid
Parent article: Temporary files: RAM or disk?

> It was quite common in past for /tmp files only to be cleaned when older than 24hrs.

The distinction which I learned, which may very well be non-universal, was that /tmp is for temporary files which are tied to a particular process. These files can be removed as soon as the process exits, including on reboot. The /var/tmp directory is for temporary files which may need to outlast a given process, possibly across reboots, and should thus be cleared out much more sparingly based on the ages of the files.

Of course, not all processes follow this distinction.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds