Hacker News new | ask | show | jobs
by Ao7bei3s 4852 days ago
It'd teach them not to run random commands they found on the internet, what rm does, and to make backups. Three valueable lessons.

That is, if it would actually work: modern rm implementations have a special case for /. Read the manpage and/or try this instead:

rm -rf --no-preserve-root /