1550
you are viewing a single comment's thread
view the rest of the comments
[-] Barbarian@sh.itjust.works 45 points 1 year ago* (last edited 1 year ago)

Fun fact, rm -rf /* does not need --no-preserve-root. It will happily start as technically, according to the preserve root check, /* is not root as the target is not /

[-] koper@feddit.nl 15 points 1 year ago* (last edited 1 year ago)

It's slightly different. Your shell will see the /* and replace it with all the directories under /, e.g. /bin /dev /etc /home etc. So the actual command that runs is rm -rf /bin /dev /etc /home etc.

this post was submitted on 10 Aug 2023
1550 points (94.3% liked)

Programmer Humor

19488 readers
1064 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 1 year ago
MODERATORS