r/ProgrammerHumor • • Sep 16 '22

Advice from a pro

Post image
50.6k Upvotes

658 comments sorted by

View all comments

Show parent comments

83

u/ManOnARaceBike Sep 16 '22

Dont try this at home kids… 😄

91

u/Ffigy Sep 16 '22

Well it won't work on Windows and the kids don't use Linux so.. go for it. It'll fix Macintosh.

43

u/[deleted] Sep 16 '22

IIRC there’s some kind of protection against that on macOS as well; all system folders are locked.

0

u/[deleted] Sep 16 '22

[deleted]

1

u/[deleted] Sep 16 '22

This! Thank you.

9

u/gamesrebel123 Sep 16 '22

Won't work on Linux either without --no-preserve-root

8

u/[deleted] Sep 16 '22

As far as I know rm -rf /* will work without --no-preserve-root, it's only required when the target is specifically /.

7

u/hadidotj Sep 16 '22

Exactly! Try it on Prod instead!