this post was submitted on 13 Jan 2025
351 points (94.9% liked)

Programmer Humor

19967 readers
643 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 20 points 1 day ago* (last edited 1 day ago) (4 children)

It's funny because you can tell whoever wrote this has never run that command. You need to either put --no-preserve-root OR /*. Using /* obviates the need for the flag --no-preserve-root.

[–] [email protected] 20 points 1 day ago (2 children)

you can tell whoever wrote this has never run that command

Uh... isn't that a good thing?

[–] [email protected] 2 points 14 hours ago

It's as good as bind kill mouse1 being a protected command in valve consoles... aka not at all.

[–] [email protected] 2 points 1 day ago

I suppose, I figured most sysadmins had run it for funsies at least once...or a few times LOL.

[–] [email protected] 10 points 1 day ago

I compile my own version of rm so that it doesn't require the parameter.

Just in case I need to.

[–] [email protected] 10 points 1 day ago

GPT fixes that internally 🀑

[–] [email protected] 1 points 1 day ago

It's redundant but it still works; doing it that way does not imply they haven't actually used it.