this post was submitted on 16 Mar 2026
494 points (97.5% liked)

Programmer Humor

30430 readers
1740 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
 

Sudo rm -rf .

you are viewing a single comment's thread
view the rest of the comments
[–] jaybone@lemmy.zip 2 points 1 day ago* (last edited 1 day ago) (1 children)

Right, so then if asterisk wildcards don’t match on . and .. then, in most common distros where there is no dot in any of the top level dirs in /, “rm -rf *.*” in the top level / dir is basically harmless and likely a noop.

So OP is wrong.

[–] lena@gregtech.eu 1 points 19 hours ago* (last edited 19 hours ago)

Technically, it says he's in the ~ directory, which would usually be /home/god, but even in there there aren't usually any directories/files with a dot.