969
submitted 3 weeks ago by [email protected] to c/[email protected]
top 50 comments
sorted by: hot top new old
[-] [email protected] 255 points 3 weeks ago

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

[-] [email protected] 64 points 3 weeks ago

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

[-] [email protected] 35 points 3 weeks ago

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

[-] [email protected] 97 points 3 weeks ago* (last edited 3 weeks ago)

At least we know vibe coders will eventually destroy themselves.

[-] [email protected] 20 points 3 weeks ago

just wait until they start vibe coding on their brain implant

[-] [email protected] 86 points 3 weeks ago

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

[-] [email protected] 41 points 3 weeks 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...

[-] [email protected] 31 points 3 weeks 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.

[-] [email protected] 13 points 3 weeks ago

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

[-] [email protected] 11 points 3 weeks 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....

[-] [email protected] 9 points 3 weeks ago* (last edited 3 weeks 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.

load more comments (2 replies)
[-] [email protected] 81 points 3 weeks ago

Looks like ChatGPT will create more software jobs than it takes.

[-] [email protected] 54 points 3 weeks ago

AI will create the most cursed entry jobs humans have yet to see.

First job in the old days doing WordPress, managing someone's vomit inducing PHP? Gone.

Jobs with jQuery spaghetti calling dozens of asp APIs like a rat's nest no rat can traverse? Gone.

Welcome to the future: Fixing some "business" guy's vibe coded personal hell made just for you.

load more comments (1 replies)
[-] [email protected] 59 points 3 weeks ago

deserved tbh

[-] [email protected] 45 points 3 weeks ago
[-] [email protected] 21 points 3 weeks ago

Never started

[-] [email protected] 43 points 3 weeks ago* (last edited 3 weeks ago)

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

https://containers.dev/

[-] [email protected] 41 points 3 weeks ago

We call this a whoopsie daisy.

[-] [email protected] 9 points 3 weeks ago

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

[-] [email protected] 3 points 3 weeks ago

Whoopsie daisy-cutter.

[-] [email protected] 33 points 3 weeks ago

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

[-] [email protected] 47 points 3 weeks ago

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

[-] [email protected] 11 points 3 weeks 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

[-] [email protected] 37 points 3 weeks ago
[-] [email protected] 14 points 3 weeks ago

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

[-] [email protected] 11 points 3 weeks ago* (last edited 3 weeks ago)

prefix with path, and/or quotation

[-] [email protected] 8 points 3 weeks ago

Using Nautilus or Dolphin.

[-] [email protected] 2 points 3 weeks ago

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

[-] [email protected] 7 points 3 weeks ago

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

[-] [email protected] 1 points 3 weeks ago
[-] [email protected] 6 points 3 weeks ago

No, but single quotes will.

[-] [email protected] 2 points 3 weeks ago

huh, I almost removed my entire home directory

[-] [email protected] 3 points 3 weeks ago

In case you are just testing it out, don't use -rf
Your ~ directory is most probably empty, so use rm -d instead, to prevent all footguns in case you put the wrong character in the end.

       -d, --dir
              remove empty directories

I feel safe doing rm -d /.
I feel safe doing sudo rm -d /.

Because it won't delete anything that has a file in it.

[-] [email protected] 30 points 3 weeks ago

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

[-] [email protected] 23 points 3 weeks ago

It should have done sudo rm -rf /*

[-] [email protected] 30 points 3 weeks ago

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

[-] [email protected] 7 points 3 weeks ago

Of course :3

[-] [email protected] 19 points 3 weeks ago* (last edited 3 weeks 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

[-] [email protected] 8 points 3 weeks ago

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

[-] [email protected] 7 points 3 weeks 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.

[-] [email protected] 9 points 3 weeks ago

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

(until you figure it out once)

[-] [email protected] 7 points 3 weeks 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

[-] [email protected] 5 points 3 weeks ago

Is this assisted ~~suicide~~?

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

Programmer Humor

24476 readers
57 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