Re:$ sudo rm -rf / === NPM install
by wongarsu on Tuesday November 09, 2021 @08:57AM
(#29161768)
You 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).
[ Parent
| on HN ]
Re:$ sudo rm -rf / === NPM install
by bravetraveler on Tuesday November 09, 2021 @12:27PM
(#29164528)
Can confirm /* notation still works. It comes down to how things are interpreted. The shell expands that before rm ever gets argv