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

`rm -rf /` will refuse to delete the root folder. You can see an example of it doing that here.

https://phoenixnap.com/kb/sudo-rm-rf





This was the D drive though, not root, ie C drive. So rm -rf would happily delete it all.

this is not always true. this is a dangerous fun fact to memorize.

and i don't mean because there's an override flag.




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

Search: