LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Is it safe to delete the contents of /tmp? (https://www.linuxquestions.org/questions/slackware-14/is-it-safe-to-delete-the-contents-of-tmp-519134/)

pbhj 01-15-2007 11:59 AM

rc.local
 
Quote:

Originally Posted by jong357
Well, who says /tmp should be cleared on shutdown?

Well, rc.local then?!

jong357 01-15-2007 12:35 PM

rc.local gets called from rc.S.... :D

rc.S is the place for it!!!!! Hell, you could put it in rc.alsa, and it'll still work.

It does take awhile on bootup tho if you have lots of stuff in there and your using an old computer. That's why I echo "cleaning /tmp" so your not sitting there wondering what's going on.

Would you rather wait to bootup or wait to shutdown/reboot. Either way your waiting...

Crobat 01-15-2007 12:39 PM

Quote:

Originally Posted by jong357
Would you rather wait to bootup or wait to shutdown/reboot. Either way your waiting...

Shutdown. Normally if I shutdown, I'm turning off my laptop for some reason. However, on a PC, it really doesn't matter.

Sorry, sugar rush makes me answer rhetorical questions as logically as possible, or something. :p

Chikne 01-15-2007 01:55 PM

My /tmp was kind of filling up the other day, I didn't know it could be unsafe to do it while running the OS but no harm was done....

jong357 01-15-2007 02:39 PM

The only deal is that you'll remove some sockets related to X. So things will stop working until you restart the X server. Not sure if .{ICE,X11}-unix will be recreated upon startx or not. I believe they are. If that's the case then you don't have to reboot at all. Just log out and then log back in.

It's completely harmless to remove the contents of /tmp in a 'standard' situation, atleast that I'm aware of anyway. A little too much FUD here concerning this.


All times are GMT -5. The time now is 05:12 PM.