this post was submitted on 16 Mar 2026
213 points (96.5% liked)

Programmer Humor

30403 readers
2231 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
[–] suicidaleggroll@lemmy.world 11 points 9 hours ago (2 children)

Decades ago I ran an "rm -fr *" as root, I thought that I was ~/bin, but I was in /bin. That was a fun lesson.

[–] prettybunnys@piefed.social 7 points 6 hours ago (1 children)

Production system, first day, did it at / and it wasn’t until I saw /bin scrolling by that I realized my mistake.

Luckily it was a stateless system and a reboop brought it back but i learned a valuable lesson that morning.

[–] jaybone@lemmy.zip 4 points 6 hours ago

I got into this bad habit of trompsing around as root on our dev systems at work because who gives a shit we abuse and reprovision those systems all the time.
But then I find myself at home on one of my home servers or desktops fumbling around as root. Because I don’t want to constantly run sudo. Fortunately nothing bad has happened, bad enough to be memorable anyway, in the last 20 years or so. I guess I’m still pretty careful. Or lucky.