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

Most `rm` impls default to `--preserve-root` now, so you need to `rm --no-preserve-root`.


it prevents against `rm -rf /`, not `rm -rf /*` does it?


Probably. The star would involve shell globbing. [edit for clarification: I meant that you’re probably right]




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: