513

Sudo rm -rf .

you are viewing a single comment's thread
view the rest of the comments
[-] suicidaleggroll@lemmy.world 32 points 4 days ago

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 17 points 4 days ago

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 4 days 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.

this post was submitted on 16 Mar 2026
513 points (97.6% liked)

Programmer Humor

30474 readers
2654 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