this post was submitted on 22 Jun 2023
11 points (92.3% liked)
unix like operating system lovers
2170 readers
1 users here now
This is a community that is only for nerds jk. everyone who doesn't scare when seeing UNIX terminal welcome! rules:
- don't make comments that branch out from the main topic too much, at least please somehow relate to it.
- retro operating systems, e.g. discussion about them, is strictly forbidden, please make a retro community instead.
- please be nice for others.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.