4 ms·
I believe Apple forked rm to provide protection for this case? Also, if you're willing to lean into npm a bit, there's tools that give a layer of protection ov
by throwawaycuriou 5y ago
I believe Apple forked rm to provide protection for this case?
Also, if you're willing to lean into npm a bit, there's tools that give a layer of protection over rm such as https://github.com/sindresorhus/trash-cli https://github.com/sindresorhus/trash-cli
- spicybright 5y agoNot under Catalina. Don't ask me how I know that.
- _1 5y agoI just tried it in Big Sur and it wouldn't allow it.
- kayodelycaon 5y agoDid it give you the this is dangerous message or a permissions error? If it’s the latter, you probably got stopped by System Integrity Protection.
- dima55 5y agoNah, it totally works. Yall should try it.
- antonvs 5y agoI just did it and it seems fi
- dylan604 5y agoYou also can't mkdir there either
- wongarsu 5y agoYou might be thinking of the GNU version of rm (the version on any modern linux). There you need `rm -rf --no-preserve-root /` to delete everything, which prevents GP's typo (`rm -rf /*` might still work though).
- bravetraveler 5y agoCan confirm /* notation still works. It comes down to how things are interpreted. The shell expands that before rm ever gets argv