View previous topic :: View next topic |
Author |
Message |
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Sun May 26, 2002 5:52 pm Post subject: /tmp folder ?! |
|
|
It's safe to REMOVE ENTIRE OF /tmp FOLDER? _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
kcsduke n00b
Joined: 25 May 2002 Posts: 40 Location: Cambridge, MA
|
Posted: Sun May 26, 2002 6:14 pm Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Sun May 26, 2002 6:22 pm Post subject: |
|
|
I have a lot of shit inside /tmp
Any idea?
thanks _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Sun May 26, 2002 8:08 pm Post subject: |
|
|
Two suggestions:
- Delete all the contents of /tmp and then immediately reboot. This is the easy way out.
- 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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
|
Back to top |
|
|
alec Apprentice
Joined: 19 Apr 2002 Posts: 270 Location: Here
|
Posted: Mon May 27, 2002 1:35 am Post subject: |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon May 27, 2002 1:41 am Post subject: |
|
|
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 |
|
|
|