Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
difference between /tmp and /var/tmp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Wed Aug 02, 2006 7:23 am    Post subject: difference between /tmp and /var/tmp Reply with quote

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
View user's profile Send private message
forgotten1
Guru
Guru


Joined: 11 Jan 2005
Posts: 477
Location: East Coast, USA

PostPosted: Wed Aug 02, 2006 11:50 am    Post subject: Reply with quote

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
View user's profile Send private message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Wed Aug 02, 2006 5:09 pm    Post subject: Reply with quote

i will leave them separate, thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum