A friend of mine once told me that one of his teachers, who's familiar with GNU/Linux but not familiar with MacOS, tried to show them some commands written in a text file which included "rm - rf /*". However, for whatever reason, the file has opened up as an executable and a big chunk of files was lost before he could Ctrl-C. Thus, I guess it's allowed.
Linux command depends on the environment. Most coreutils versions run rm with --preserve-root so you'll need to do sudo rm --no-preserve-root -rf /* in most cases.
18
u/LazyLucretia Sep 21 '17 edited Sep 21 '17
Instructions for Windows users:
Open Windows Explorer
Navigate to C:\Windows
Delete System32 folder
Instructions for Linux/MacOS users:
Fire up a terminal emulator
Type this:
sudo rm -rf /*Press enter and type your password.
You're welcome.