Difference and correct usage for /tmp and /var/tmp

Posted by David on Server Fault See other posts from Server Fault or by David
Published on 2011-01-07T21:06:28Z Indexed on 2011/01/07 21:55 UTC
Read the original article Hit count: 315

Filed under:
|

I haven't put much thought into this until now, but it seems odd that there is a /var/tmp and /tmp directories for most of the linux distro's I routinely use ( Ubuntu, Centos, Redhat ).

Is there any semantic difference between the two, like when whoever designed the first file system layout, he or she thought "Not all tmp file's are created equal!"

The only difference I've found for centos, is that /tmp routinely scrubs out files older then 240 hours while /var/tmp holds onto stale files for 720 hours.

© Server Fault or respective owner

Related posts about linux

Related posts about subdirectories