News for hackers. Stuff that matters.
Re:$ sudo rm -rf / === NPM install by josefx on Tuesday November 09, 2021 @09:38AM (#29162305)
I think on linux it will refuse to run by default an you have to explicitly disable that protection. Of course running rm -rf /opt /* by accident will still delete everything.
Re:$ sudo rm -rf / === NPM install by omoikane on Tuesday November 09, 2021 @02:26PM (#29166225)
Depends on the distribution I think. The ones I tried here just started deleting things right away: https://bellard.org/jslinux/
Re:$ sudo rm -rf / === NPM install by josefx on Tuesday November 09, 2021 @02:39PM (#29166398)
Seems to be specific to GNU rm then, the Fedora linux on that page refuses rm -rf / unless you add the --no-preserve-root flag, the other two have a BusyBox based rm.
Re:$ sudo rm -rf / === NPM install by ghuntley on Tuesday November 09, 2021 @03:17PM (#29166892)
If you want to run rm -rf I encourage you to run rm -rf >within Gitpod< as many times as you want!

https://www.github.com/gitpod-io/rm-rf

Re:$ sudo rm -rf / === NPM install by btdmaster on Tuesday November 09, 2021 @05:54PM (#29168666)
https://archive.md/5lmc9

rm is disallowed to remove . and .. under POSIX, so, for that reason, / needs to be treated specially too.