Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

sudo rm -rf / Gives me Permission Denie

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading