Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/tmp folder ?!
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
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Sun May 26, 2002 5:52 pm    Post subject: /tmp folder ?! Reply with quote

It's safe to REMOVE ENTIRE OF /tmp FOLDER?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
kcsduke
n00b
n00b


Joined: 25 May 2002
Posts: 40
Location: Cambridge, MA

PostPosted: Sun May 26, 2002 6:14 pm    Post subject: Reply with quote

According to the Filesystem Hierarchy Standard:

"The /tmp directory must be made available for programs taht require temporary files.

"Programs must not assume that any files or directories in /tmp are preserved between invocations of the program."

I think that you can actually set things up such that /tmp is cleared when you boot up, but I'm not sure how. When I used to use Mandrake that was an option when setting up the bootloader.

I don't think I'd clear it out without good reason, partiularly with a lot of programs running, but I don't think it'd do any permanent damage.

Why do you want to clear out /tmp anyway? Is it filling up?
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Sun May 26, 2002 6:22 pm    Post subject: Reply with quote

I have a lot of shit inside /tmp
Any idea?
thanks
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun May 26, 2002 8:08 pm    Post subject: Reply with quote

pacman wrote:
Any idea?


Two suggestions:

  1. Delete all the contents of /tmp and then immediately reboot. This is the easy way out.
  2. Shut down all necessary programs and daemons and then delete the contents of /tmp


Either way, you won't fry your system just by deleting the contents of /tmp. Even with option #2, the worst that happens is you have a daemon or two that won't function correctly until you restart them.

If you're running this system as a multi-user server, especially a web server (and especially one that uses PHP) then I'd choose option #1 just to be safe. PHP writes session information to /tmp by default.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Sun May 26, 2002 8:14 pm    Post subject: Reply with quote

Thanks, you may see this link too:

https://forums.gentoo.org/viewtopic.php?t=3358
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Mon May 27, 2002 1:35 am    Post subject: Reply with quote

I don't know how smart this is, but I've got a gig of ram and 200 MB of swap if that overfills, so I just mount /tmp as tmpfs - little to no footprint while not in use, but it can expand. Since I reboot fairly often on this computer (it is a desktop and I do need to sleep at night), it keeps itself relatively clean. I have especailly liked storing my browser cache files in /tmp - no more damn cookies!
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon May 27, 2002 1:41 am    Post subject: Reply with quote

alec wrote:
I don't know how smart this is


Plenty of people do this and it can actually make some apps that rely heavily on /tmp much faster since they're reading/writing to RAM rather than a hard drive.

So, if you've got the RAM to burn, it can be a great choice.

--kurt
_________________
The problem with political jokes is that they get elected
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