fork bomb
: Creates infinite processes, leading to system slowdown or crash.rm -rf --no-preserve-root /
: Deletes all files, rendering the system unusable.chmod 777
: Grants full access to everyone for a file, creating a security risk.
fork bomb
: Creates infinite processes, leading to system slowdown or crash.rm -rf --no-preserve-root /
: Deletes all files, rendering the system unusable.chmod 777
: Grants full access to everyone for a file, creating a security risk.
Is there any legit reason to use
rm -rf / --no-preserve-root
? It seems like it’s mere existence is a security risk lolThat’s why it’s one of the Three Unforgivable Curses, listed above.
It adheres to the philosophy of “the computer should do what I tell it to”. Maybe there is no reason to do it, but it doesn’t matter, the computer shouldn’t stop me from doing something if I really want to.
https://opensource.com/business/14/12/linux-philosophy
Linux wanted to be different than Windows and give the user total control. If the user wants to nuke their entire computer, they should be able to.
The
--no-preserve-root
flag didn’t exist for a long time. It was added torm
because people kept trolling new Linux users on forums who would just run any command you gave them without understanding what they were doing.Not really. You don’t have the app enforce that, but the OS. Otherwise, I can just go write a program that does the same thing and use that.