logoalt Hacker News

weberertoday at 3:06 PM2 repliesview on HN

`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


Replies

Novoselltoday at 4:04 PM

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

digitalsushitoday at 3:23 PM

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

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