15
I have no idea what I'm doing, help!
(sh.itjust.works)
This is a community that is only for nerds jk. everyone who doesn't scare when seeing UNIX terminal welcome! rules:
This used to be pretty prevalent, I don't know how often this happens now, but anybody telling you to run the following command on the command line is a troll and to be avoided:
sudo rm -rf --no-preserve-root /
What that does is delete everything on your hard-drive, including the OS. To break it down:
sudo
will prompt you for your password and run the command as a superuser (admin).rm
is the command to delete files.-rf
tells it to do it recursively (include folders and target every folder in those folders, etc) and to force through, as in not prompt the user for anything it can't delete, just delete everything it can.--no-preserve-root
disables protection that was added to stop shenanigans like this./
is the target: the root of the file system, vaguely equivalent to "C:" on a Windows machine.Thanks for the heads up and the breakdown. I'd like to think I'm clever enough to avoid inputting what is a obviously nefarious command, but I don't think I've fully plumbed the depths of my foolishness.