Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

rm is not like explorer.exe and is rather fast with destruction, so I guess you must have deleted some dotfiles.


Could be. This was on a Mac, around 2013, so it should have been pretty snappy.

Whatever it got I never noticed. Maybe it was trawling through a bunch of build detritus in `~/.cpan` or something.


I accidentally did the same on my Mac via a shell script where I assumed mktemp worked the same as gnu mktemp, it does not. IIRC it was my /Applications directory that was first to be hit; most of the directory was unaffected due to file permissions but it did delete some files despite me catching thee error and sending sigkill within seconds.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: