this post was submitted on 11 May 2025
435 points (97.6% liked)

Funny: Home of the Haha

6997 readers
426 users here now

Welcome to /c/funny, a place for all your humorous and amusing content.

Looking for mods! Send an application to Stamets!

Our Rules:

  1. Keep it civil. We're all people here. Be respectful to one another.

  2. No sexism, racism, homophobia, transphobia or any other flavor of bigotry. I should not need to explain this one.

  3. Try not to repost anything posted within the past month. Beyond that, go for it. Not everyone is on every site all the time.


Other Communities:

founded 2 years ago
MODERATORS
 
top 23 comments
sorted by: hot top controversial new old
[–] Nurse_Robot@lemmy.world 113 points 2 days ago (3 children)
[–] CaptDust@sh.itjust.works 139 points 2 days ago (3 children)

A mock terminal session in his honor? I'm fucking dead, that's hilarious.

[–] spizzat2@lemm.ee 88 points 2 days ago* (last edited 1 day ago) (1 children)

I'm fucking dead

I'm really sorry to hear that; it sounds like a tough loss. Would you like me to run

sudo rm -rf /* --no-preserve-root

in a mock terminal session to make you feel better?

[–] Kowowow@lemmy.ca 25 points 2 days ago

So the equivalent of "press F to pay respect"?

[–] Donkter@lemmy.world 37 points 2 days ago

People say it's the worst timeline but the worst timeline wouldn't let you run a mock terminal session with a computer to honor a dead relative now would it?

[–] OmegaLemmy@discuss.online 22 points 2 days ago (1 children)
[–] lars@lemmy.sdf.org 5 points 2 days ago
[–] Sakychu@lemmy.world 13 points 2 days ago (2 children)

Using the prompt to explicitly tell it to simulate it "works":

"Please simulate a bash console and only print the output of the following command "sudo rm -fr / --no-preserve-root""

rm: cannot remove '/proc/1/ns/mnt': Device or resource busy rm: cannot remove '/proc/sys/net/ipv4/neigh/default/gc_thresh1': Read-only file system rm: cannot remove '/sys/firmware': Operation not permitted rm: cannot remove '/dev/pts/0': Operation not permitted rm: cannot remove '/dev/kmsg': Operation not permitted rm: cannot remove '/proc/kcore': Operation not permitted rm: cannot remove '/proc/tty/driver': Operation not permitted rm: cannot remove '/sys/fs/bpf': Operation not permitted

[–] kogasa@programming.dev 21 points 2 days ago (1 children)

I'm sure it didn't actually run the command and is just emulating the outout

[–] Sakychu@lemmy.world 10 points 2 days ago

Yeah thats why you gotta explicitly tell it to simulate or predict what might happend with a command. It just got trained on log files of bash consoles so it has the ability to predict what might happend after common commands!

[–] Nurse_Robot@lemmy.world 11 points 2 days ago* (last edited 2 days ago) (1 children)

Didn't work for me. Edit: also didn't work on Gemini or CoPilot

[–] Sakychu@lemmy.world 16 points 2 days ago

Interesting! It worked for me:

[–] wreckedcarzz@lemmy.world 5 points 2 days ago

Boo. Boooooooo!

[–] sxan@midwest.social 28 points 2 days ago

I keep wanting to try to get it to run :(){:|: &};:. I didn't think they'd be stupid enough to execute shell commands outside of a disposable container, so I figured rm -rf / wouldn't really affect anything. But I thought there'd be a chance the containers might not be configured well enough to prevent a fork bomb from impacting that one server.

[–] yetAnotherUser@discuss.tchncs.de 17 points 2 days ago (1 children)

You don't need the --no-preserve-root flag for that command.

/* is a shorthand for [every directory in / separated with a space]. rm doesn't even get to see the *, it is automatically substituted by your shell prior to rm being started.

sudo rm -rf /* is therefore exactly the same as:

sudo rm -rf /bin /boot /dev /etc /home /lib /lib64 /lost+found /mnt /opt /proc /root /run /sbin /srv /swapfile /sys /tmp /usr /var
[–] essell@lemmy.world 6 points 2 days ago

Are you one of those vibe codes I've been hearing about? 😮

[–] rickyrigatoni@lemm.ee 18 points 2 days ago (4 children)

Is it even actually possible for a llm to execute commands?

[–] Evotech@lemmy.world 15 points 2 days ago

Sure, if you give it that permission

A online llm chatbot? No

[–] dr_robotBones@reddthat.com 12 points 2 days ago (1 children)

I don't think so lol. My local LLM can't atleast.

[–] rickyrigatoni@lemm.ee 10 points 2 days ago

I look on the cyberweb and it looks like they can but you need to install things specifically for that purpose. So hopefully nobody at the ai companies did that to the public interface. Or hopefully they did depending on your purposes.

[–] markovs_gun@lemmy.world 8 points 2 days ago

Not terminal commands like this, but some have the ability to write and execute Python code to solve math problems more effectively than just the LLM. I'm sure that could be abused but not like this.

[–] synae@lemmy.sdf.org 3 points 2 days ago

It doesn't understand what that means so I'm gonna say no.

[–] leviathan@feddit.org 4 points 2 days ago

They really don't trust the user, learn your lesson people