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

rm -rf /

gives no such warnings, and maybe it should, or maybe people should be _very_ careful when typing rm -rf in front of anything.



> GNU rm normally declines to operate on any directory that resolves to /. https://www.gnu.org/software/coreutils/manual/html_node/Trea...


It’s both, but mostly the first one. rm’s default behavior is terrible design. Just because UNIX does something doesn’t make it good.




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

Search: