Home > Mobile >  sudo rm -rf / Gives me Permission Denie
sudo rm -rf / Gives me Permission Denie

Time:02-01

so, I know that's a joke. and I know that this command erase basically entire OS. but when I'm Trying to test it, it give me permission Denie. what should I do?

Is there a failsafe? if so how should I disable it? Also is It possible to erase entire OS using a single line command?

CodePudding user response:

There is a --no-preserve-root argument you can set to allow this.

sudo rm --no-preserve-root -rf /

Should work.

I think the flag was added to prevent from accidental deleting your whole file system, like in the joke.

You can also read the man page about rm with man rm. There are much more examples and explanations then just with rm --help

Rel: https://superuser.com/a/880314/952138

  • Related