Hacker News new | ask | show | jobs
by rwmj 3378 days ago
Coreutils 'rm' has a --preserve-root option (the default) which does exactly this.

https://www.gnu.org/software/coreutils/manual/html_node/Trea...