4 ms·
Running a random shell command from the Internet without understanding it can do any number of terrible things; removing all your files and making your system u
by JoshTriplett 10y ago
Running a random shell command from the Internet without understanding it can do any number of terrible things; removing all your files and making your system unbootable is not the worst that could happen.
--no-preserve-root seems like a sufficient safeguard here.
- Houshalter 10y agoI'm just making predictions. That this will become a malicious advice meme. That lots of people will lose all their files over it. And that microsoft will probably disable it. This exact thing happened with system32. And deleting a system file somehow seems much more obviously dangerous than entering a command you don't understand. "rm" looks pretty harmless, and someone could come up with a backronym that even makes it seem sensible. In fact I wonder if this is the reason pasting into console is disabled, or at least hard to figure out, on Windows.
- mafuy 10y agoWhy do you think this is the reason system32 was protected? I think it was simply protected for the same reason the program files folder was, which is security. Not to prevent user mistakes.
- Houshalter 10y agoNo, deleting system files was only disabled on the user interface. You could still do it with a bat script or the windows api. They also got rid of deltree, which is the Windows equivalent of rm -rf, and was abused in a similar way.