101

So I set my password to

sudo rm -rf --no-preserve-root /
you are viewing a single comment's thread
view the rest of the comments
[-] thesdev@feddit.org 14 points 9 hours ago* (last edited 9 hours ago)

So the other day, I saved a big object to a file during a debugger session with a path like ~/debug.json only to find out later that the debugger didn't support shell expansions and instead of saving to the home directory it had literally saved the file under a directory called ~ inside my project. Now at that point I didn't need the file anymore anyway, so you never guess what I proceed to do next, and mind you now I was in my regular terminal: I ran rm -rf ~. Lost a bunch of dot files, but thankfully all the permission errors I got made me realize what was going on and I cancelled the operation quickly before any bigger damages were done.

[-] some_guy@lemmy.sdf.org 7 points 7 hours ago

The leading ./ to operate on a file in the cwd has saved me a lot of headaches, I'm sure.

[-] gothmog@lemmy.today 5 points 7 hours ago

It's a sad day when you realize your biggest enemy is yourself.

this post was submitted on 20 Nov 2026
101 points (96.3% liked)

Programmer Humor

34233 readers
1259 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 3 years ago
MODERATORS