View previous topic :: View next topic |
Author |
Message |
mattmatteh Guru
Joined: 10 Mar 2004 Posts: 449 Location: near chicago
|
Posted: Wed Aug 02, 2006 7:23 am Post subject: difference between /tmp and /var/tmp |
|
|
what is the difference between /tmp and /var/tmp ? i was thinking of mounting both to the same partition? is that a good or bad idea ?
thanks
matt |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Wed Aug 02, 2006 11:50 am Post subject: |
|
|
Filesystem Hierarcy Standard 2.3 wrote: | Purpose
The /tmp directory must be made available for programs that require temporary files.
Programs must not assume that any files or directories in /tmp are preserved between invocations of the program. |
Filesystem Hierarcy Standard 2.3 wrote: | Purpose
The /var/tmp directory is made available for programs that require temporary files or directories that are preserved between system reboots. Therefore, data stored in /var/tmp is more persistent than data in /tmp.
Files and directories located in /var/tmp must not be deleted when the system is booted. Although data stored in /var/tmp is typically deleted in a site-specific manner, it is recommended that deletions occur at a less frequent interval than /tmp. |
Portage, ccache, and other applications use /var/tmp. My recommendation would be NOT to mount them both to the same partition, unless you have a compelling need to do so. _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
mattmatteh Guru
Joined: 10 Mar 2004 Posts: 449 Location: near chicago
|
Posted: Wed Aug 02, 2006 5:09 pm Post subject: |
|
|
i will leave them separate, thanks |
|
Back to top |
|
|
|