Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by weberer

1 month ago

`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

2 comments

weberer

Reply

Novosell  1 month ago

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

digitalsushi  1 month ago

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

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities