976
top 50 comments
sorted by: hot top controversial new old
[-] four@lemmy.zip 257 points 1 year ago

The "Thought for 2 seconds" and "Stopped thinking" are hilarious to me

[-] sobriquet@aussie.zone 64 points 1 year ago

I kinda thought they were in the wrong order, though: “rm -rf ~/“ should have been after “stopped thinking”.

[-] abbadon420@lemm.ee 36 points 1 year ago

I think it did 'rm -rf ~/' and crashed. Hence the 'stopped thinking'

[-] x00z@lemmy.world 98 points 1 year ago* (last edited 1 year ago)

At least we know vibe coders will eventually destroy themselves.

[-] WhyJiffie@sh.itjust.works 20 points 1 year ago

just wait until they start vibe coding on their brain implant

[-] tequinhu@lemmy.world 86 points 1 year ago

I did this once (for real, but without AI assistance)

[-] pcouy@lemmy.pierre-couy.fr 41 points 1 year ago

Reminds me of the time when I bind mounted my home dir in a chroot, then rm -rfed the chroot when I no longer needed it...

[-] palordrolap@fedia.io 31 points 1 year ago

Reminds me of the company where one of the top brass tried to unmount an important fileshare with rm. That was the day they found out that they didn't have recent backups of a, shall we say disquieting, amount of important information and people's work.

Staff started taking their own private backups of important things after that.

[-] Redjard@lemmy.dbzer0.com 13 points 1 year ago

Wanted to reorganize my /mnt once and did an rm -r ... without unmounting the network share of production.
We have backups now.

[-] Hazzard@lemm.ee 11 points 1 year ago

Same, I didn't realize the directory I was deleting had a symlink to some root directory, at least until my mouse stopped working....

[-] mmddmm@lemm.ee 9 points 1 year ago* (last edited 1 year ago)

Gnome used to have a link to your homedir in its settings directory.

I imagine plenty of people had tons of fun with that. But you need to modify rm to follow symlinks nowadays.

[-] sobriquet@aussie.zone 1 points 1 year ago

I fairly recently tried to do a rm match* but accidentally put a space between the match and the *…

load more comments (1 replies)
[-] noctivius@lemm.ee 59 points 1 year ago

deserved tbh

[-] weirdboy@lemm.ee 21 points 1 year ago

Never started

[-] friend_of_satan@lemmy.world 43 points 1 year ago* (last edited 1 year ago)

This is why the first thing I did when my company got us an agentic LLM was set up devcontainer.

https://containers.dev/

[-] scrubbles@poptalk.scrubbles.tech 41 points 1 year ago

We call this a whoopsie daisy.

[-] kinther@lemmy.world 9 points 1 year ago

I often use the phrase "that's definitely an oopsie. Maybe even an oopsie daisy" at work

[-] zarkanian@sh.itjust.works 3 points 1 year ago

Whoopsie daisy-cutter.

[-] schnurrito@discuss.tchncs.de 33 points 1 year ago

OK I'll bite, how do you get rid of a literal ~ directory?

[-] barsoap@lemm.ee 47 points 1 year ago

Should be \~ in most shells, certainly bash. Use mkdir and rmdir when messing around to prevent accidents.

[-] DacoTaco@lemmy.world 11 points 1 year ago

Saw this post this morning and was thinking about how to delete it ( while falling back asleep ). Escaping the ~, ofc that'd work! I feel so stupid now haha

[-] lengau@midwest.social 37 points 1 year ago
[-] zarkanian@sh.itjust.works 14 points 1 year ago

Just give rm the entire path or a relative path like ./~

[-] raltoid@lemmy.world 11 points 1 year ago* (last edited 1 year ago)

prefix with path, and/or quotation

Using Nautilus or Dolphin.

[-] schnurrito@discuss.tchncs.de 2 points 1 year ago

True if these are installed, but if I'm on a server's command line they probably aren't.

A method not yet mentioned is by inode, (I've accidentally created filenames I didn't know how to escape at the time like -- or other command line flags/special characters)

ls -li

Once you get the inode

find . -type f -inum $inode -delete

load more comments (4 replies)
[-] nomade420@lemm.ee 30 points 1 year ago

I think it should've started with "stopped thinking"

[-] kittenzrulz123@lemmy.blahaj.zone 23 points 1 year ago

It should have done sudo rm -rf /*

[-] SatyrSack@lemmy.sdf.org 30 points 1 year ago

For when you want to delete everything in the root directory, but absolutely need to keep the directory itself.

Of course :3

[-] piranhaconda@mander.xyz 19 points 1 year ago* (last edited 1 year ago)

So. Funny story. Back when I was incredibly new to Linux, I was trying to move everything from my downloads folder to somewhere else. So I navigated into the downloads directory on the command line and sent something like

"sudo mv /* ~/misc"

when I meant to type

"sudo mv ./* ~/misc"

Yea... That was a fun learning experience and hilarious way to utterly fuck everything on that machine. Luckily it was just an old laptop I'd installed Linux on to mess around and learn, no real damage done

[-] remotedev@lemmy.ca 8 points 1 year ago

ctrl-z... ctrl-z....CTRL-Z

[-] duckiegobrrr@kbin.earth 7 points 1 year ago

I mean I have to wipe out my ~ relatively frequently on some machines at times but that's for "actual" "reasons", LLM hallucinations not involved

[-] IsThisAnAI@lemmy.world 7 points 1 year ago

You can definitely do this redirecting output. I did this to myself and sighed about 2 seconds into it after realizing what I had done.

[-] SirQuack@feddit.nl 9 points 1 year ago

Creating a ~ folder isn't the tricky part. Removing it is.

(until you figure it out once)

[-] thatradomguy@lemmy.world 5 points 1 year ago

Is this assisted ~~suicide~~?

load more comments
view more: next ›
this post was submitted on 31 May 2025
976 points (99.1% liked)

Programmer Humor

31625 readers
1289 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