←back to thread

Against /Tmp

(dotat.at)
140 points todsacerdoti | 1 comments | | HN request time: 0.001s | source
Show context
tmountain ◴[] No.41913914[source]
Things goes along with the author's "tmp cleanup" section, but I have lost valuable work on a number of occasions from hacking on random files that I created in /tmp under the assumption that they were throwaway junk files, only to reboot my machine a few hours later and have them automatically deleted by the OS. It's much safer and just as easy to use a "$HOME/tmp" dir as a junk drawer and then manually clean it up from time to time.
replies(4): >>41913944 #>>41913967 #>>41914063 #>>41914729 #
zimpenfish ◴[] No.41913944[source]
Pro* tip: don't put your mSQL database file on /tmp on a Solaris box.

Because at some point a few months later people will say "where did the database go?" and you'll have a lot of explaining and reconstruction to do.

(mid 90s)

replies(1): >>41914338 #
hulitu ◴[] No.41914338[source]
I think this one was in the "Unix admin horror stories"
replies(2): >>41914686 #>>41915525 #
1. zimpenfish ◴[] No.41914686{3}[source]
Wish I'd read that before I did it then.