logoalt Hacker News

sgarlandlast Sunday at 2:46 PM3 repliesview on HN

I can’t fathom why anyone would be surprised that a directory named “tmp” is ephemeral.


Replies

superkuhlast Monday at 3:54 PM

It could be the 20+ years of using linux where it was standard for it to only have files there deleted on boot. Temp in this case means it's temporary for that boot. Recent redefinitions are surprising unless you've only come to linux recently or from unix 40 years ago.

I am going to assume you are used to tens of days wipings of /tmp. Imagine suddenly it was decided that the wiping needed to happen every tens of seconds for security reasons and to minimize ram usage. Do you think this would impact your workflows that used /tmp? This is 100% analogous to the current situation. Yes, tmp is ephemeral, but on what timescale?

show 1 reply
CogitoCogitolast Sunday at 3:25 PM

Then I think you just don't have much imagination. I have recovered files in /tmp after turning off a machine by booting it back up in single-user mode and accessing the data before it would be cleared in during bootup. Given that "turning off a machine" can also mean "the machine lost power", I can definitely see why people would be surprised by this change.

tux2bsdlast Wednesday at 9:55 AM

[dead]