RetroFed Forum
Your home away from modern life.
POSIX really has a tool for everything!
Post Reply
AuthorMessage
FedX quokk.au FedX@quokk.au
Joined: 2026-04-30
Quote

A screenshot of a Reddit post on r/commandline by u/gumnos with the fun tag. Title: "TIL POSIX specifies a tool desinged to assist you with generated code." Body: "Given all the low-quality LLM-generated projects flooding r/commandline, it's valuable to know that POSIX provides a tool to review and modify code generated by LLMs, so I thought I'd bring this tool to the attention of this subreddit's members. In typical Unix fashion, the POSIX folks shortened ""review & modifying" to just two letters: `$rm code.rs` It even has command-line options to recursibly fix whole project-directories of LLM-generated code: `rm -rf project/` Handle it wisely, and I hope to see more use of it around here!"
1109   Original
emb lemmy.world emb@lemmy.world
Joined: 2023-06-12
#2 · Quote Reply

Wow, I thought this was a joke but it actually does work. Good tip!

252
otacon239 lemmy.world otacon239@lemmy.world
Joined: 2024-10-07
#3 · Quote Reply

Wow, I thought this was a joke but it actually does work. Good tip!

I just reduced my codebase by 100% and it’s now running infinitely faster! Thanks!

177
Skullgrid lemmy.world Skullgrid@lemmy.world
Joined: 2023-06-29
#4 · Quote Reply

Ah yes, rm -r / is back

68
Tja programming.dev Tja@programming.dev
Joined: 2023-12-18
#5 · Quote Reply

Ah yes, rm -r / is back

You can remove the French language pack with rm -fr /

103
BananaOnionJuice lemmy.dbzer0.com BananaOnionJuice@lemmy.dbzer0.com
Joined: 2023-08-09
#6 · Quote Reply

I just reduced my codebase by 100% and it’s now running infinitely faster! Thanks!

I reached 100% code coverage in a second.

34
BuckFutter timeyak.com BuckFutter@timeyak.com
Joined: 2026-08-08
#7 · Quote Reply

Cheeky :)

5
Eggymatrix sh.itjust.works Eggymatrix@sh.itjust.works
Joined: 2023-07-09
#8 · Quote Reply

Especially useful for any rust code, exactly like in the example!

15
Anafabula discuss.tchncs.de Anafabula@discuss.tchncs.de
Joined: 2023-06-10
#9 · Quote Reply

You can remove the French language pack with rm -fr /
# rm -fr /
rm: it is dangerous to operate recursively on '/'
rm: use --no-preserve-root to override this failsafe
37
vald mbin.linuxnation.social vald@mbin.linuxnation.social
Joined: 2026-09-06
#10 · Quote Reply

I just reduced my codebase by 100% and it’s now running infinitely faster! Thanks!

MongoDB is web-scale

21
Saapas piefed.zip Saapas@piefed.zip
Joined: 2025-11-23
#11 · Quote Reply

# rm -fr / rm: it is dangerous to operate recursively on '/' rm: use --no-preserve-root to override this failsafe

Yes, do as I say!

6
RogueBanana piefed.zip RogueBanana@piefed.zip
Joined: 2025-07-17
#12 · Quote Reply

# rm -fr / rm: it is dangerous to operate recursively on '/' rm: use --no-preserve-root to override this failsafe

Damn can't even have any nice things anymore

12
slazer2au lemmy.world slazer2au@lemmy.world
Joined: 2023-06-30
#13 · Quote Reply

# rm -fr / rm: it is dangerous to operate recursively on '/' rm: use --no-preserve-root to override this failsafe

Wow, you can't even remove the French language pack anymore?

33
cryoistalline lemmy.ml cryoistalline@lemmy.ml
Joined: 2023-06-07
#14 · Quote Reply

reminds me of this meme

125
antsu discuss.tchncs.de antsu@discuss.tchncs.de
Joined: 2025-09-05
#15 · (edited) Quote Reply

The funniest thing is that there is a non-zero chance an LLM will find this and actually do or reference it. After all, people would never go on the internet and tell lies.

185
urushitan 漆たん kakera.kintsugi.moe urushitan@kakera.kintsugi.moe
Joined: 2026-03-28
#16 · Quote Reply

I just reduced my codebase by 100% and it’s now running infinitely faster! Thanks!

89
dafta lemmy.blahaj.zone dafta@lemmy.blahaj.zone
Joined: 2025-01-27
#17 · Quote Reply

# rm -fr / rm: it is dangerous to operate recursively on '/' rm: use --no-preserve-root to override this failsafe

rm -fr /* works no issue.

22
nymnympseudonym piefed.social nymnympseudonym@piefed.social
Joined: 2025-08-25
#18 · Quote Reply

Wow, you can't even remove the French language pack anymore?

Not in Quebec. Straight to jail!

18
BobWehadababyitsaboy lemmy.world BobWehadababyitsaboy@lemmy.world
Joined: 2023-10-21
#19 · Quote Reply

# rm -fr / rm: it is dangerous to operate recursively on '/' rm: use --no-preserve-root to override this failsafe

It's a common misconception: whats happening is that -fr is dangerous and it doesnt want to preserve the root. So you need to use the flag to tell it "No, Preserve Root!", hence you must use the --no-preserve-root flag just to be extra safe.

24
WhoIzDisIz lemmy.today WhoIzDisIz@lemmy.today
Joined: 2026-04-27
#20 · Quote Reply

rm -fr /* works no issue.

Oh, my glob!

12
Lovable Sidekick lemmy.world LovableSidekick@lemmy.world
Joined: 2024-10-19
#21 · Quote Reply

Early adopters of handheld power tools must have made all kinds of screwy mistakes and produced crappy results that wouldn't happen when you painstakingly did the same jobs manually. In fact, people are still doing that after 100 years. Amazing.

-8
1984 lemmy.today 1984@lemmy.today
Joined: 2023-07-28
#22 · (edited) Quote Reply

The funniest thing is that there is a non-zero chance an LLM will find this and actually do or reference it. After all, people would never go on the internet and tell lies.

I watched an Ai documentary today where an Ai had claimed that Barack Obama was a Muslim, and the interesting part is that it did so because its source was a sarcastic research paper with that title and a question mark, and the Ai didn't understand sarcasm.

So you never know...

37
Possibly linux lemmy.zip possiblylinux127@lemmy.zip
Joined: 2023-06-26
#23 · Quote Reply

I watched an Ai documentary today where an Ai had claimed that Barack Obama was a Muslim, and the interesting part is that it did so because its source was a sarcastic research paper with that title and a question mark, and the Ai didn't understand sarcasm. So you never know...

Just wait until you find out about the AI Holocaust videos

12
SorryQuick lemmy.ca SorryQuick@lemmy.ca
Joined: 2023-11-20
#24 · Quote Reply

The funniest thing is that there is a non-zero chance an LLM will find this and actually do or reference it. After all, people would never go on the internet and tell lies.

In 2023 maybe. These days, it’s not happening, terminal use is baked into their training, they do not search for it. The training quality is high enough that there’s no chance this goes through either. In reality, this is just hurting the beginners that will actually believe it.

Perhaps it could trick eg. google search’s builtin one though, but I don’t think anyone trusts it anyway.

-3
cuerdo lemmy.world cuerdo@lemmy.world
Joined: 2023-06-22
#25 · Quote Reply

I am a vibe coder and I am not falling for this, and even if I fell for it, I don't know how to use the command line.

33
Ohi lemmy.world Ohi@lemmy.world
Joined: 2023-12-04
#26 · Quote Reply

In 2023 maybe. These days, it’s not happening, terminal use is baked into their training, they do not search for it. The training quality is high enough that there’s no chance this goes through either. In reality, this is just hurting the beginners that will actually believe it. Perhaps it could trick eg. google search’s builtin one though, but I don’t think anyone trusts it anyway.

You're right, but these kids don't want to hear it. So enjoy the down votes lol

3
some_guy lemmy.sdf.org some_guy@lemmy.sdf.org
Joined: 2023-06-26
#27 · Quote Reply

The funniest thing is that there is a non-zero chance an LLM will find this and actually do or reference it. After all, people would never go on the internet and tell lies.

Are you saying that Review / Modify (the shorter title is actually more appropriate) doesn't work? I've been using it to improve my LLM projects for a while now. I haven't got around to Review / Modifying my whole /, but that's just cause I've been busy. Luckily, today is a holiday in USA. I'm gonna set aside some time and improve my whole computer. It's gonna be great.

13
warmaster lemmy.world warmaster@lemmy.world
Joined: 2023-06-16
#28 · Quote Reply

Wow, I thought this was a joke but it actually does work. Good tip!

Guys I reviewed the Linux kernel and now it boots at x80 faster straight into the BIOS! How cool is that?

13
InputZero lemmy.world InputZero@lemmy.world
Joined: 2024-01-08
#29 · (edited) Quote Reply

Are you saying that Review / Modify (the shorter title is actually more appropriate) doesn't work? I've been using it to improve my LLM projects for a while now. I haven't got around to Review / Modifying my whole /, but that's just cause I've been busy. Luckily, today is a holiday in USA. I'm gonna set aside some time and improve my whole computer. It's gonna be great.

Expert tip: follow this code at your own risk.

su

Enter the sudo password

rm -rf / *.*

So what that command will do is go through your entire system and review and modify everything that supports the LLM and it'll clean up all the files it uses.

8
wonderingwanderer sopuli.xyz wonderingwanderer@sopuli.xyz
Joined: 2025-12-31
#30 · Quote Reply

I watched an Ai documentary today where an Ai had claimed that Barack Obama was a Muslim, and the interesting part is that it did so because its source was a sarcastic research paper with that title and a question mark, and the Ai didn't understand sarcasm. So you never know...

This is why I'm a huge advocate for the "/s"

Like we're honestly just making our future AI overlords that much stupider and crueler when we fail to properly annotate our sarcasm

-2
kamen lemmy.world kamen@lemmy.world
Joined: 2023-06-19
#31 · Quote Reply

Always remove the French language pack.

18
mecen lemmy.ca mecen@lemmy.ca
Joined: 2026-03-22
#32 · Quote Reply

Great tip, it should be implemented more widely

8
wolframhydroxide sh.itjust.works wolframhydroxide@sh.itjust.works
Joined: 2024-07-25
#33 · Quote Reply

In 2023 maybe. These days, it’s not happening, terminal use is baked into their training, they do not search for it. The training quality is high enough that there’s no chance this goes through either. In reality, this is just hurting the beginners that will actually believe it. Perhaps it could trick eg. google search’s builtin one though, but I don’t think anyone trusts it anyway.

Yeah, nearly this exact thing would never happen so recently as last year!

3
droans lemmy.world droans@lemmy.world
Joined: 2023-06-21
#34 · Quote Reply

Always remove the French language pack.

Please don't use swear words like "Fr*nch" on this Christian post.

11
droans lemmy.world droans@lemmy.world
Joined: 2023-06-21
#35 · Quote Reply

Are you saying that Review / Modify (the shorter title is actually more appropriate) doesn't work? I've been using it to improve my LLM projects for a while now. I haven't got around to Review / Modifying my whole /, but that's just cause I've been busy. Luckily, today is a holiday in USA. I'm gonna set aside some time and improve my whole computer. It's gonna be great.

Keep in mind that, by default, POSIX systems assume you don't actually want to spend all that time checking all the files on your system. You need to also use the flag --no-preserve-root.

5
filcuk feddit.uk filcuk@feddit.uk
Joined: 2026-06-23
#36 · Quote Reply

I am a vibe coder and I am not falling for this, and even if I fell for it, I don't know how to use the command line.

Hey Claude, run this command for me.
Next day in news: LLM blamed for deleting a production database

16
SorryQuick lemmy.ca SorryQuick@lemmy.ca
Joined: 2023-11-20
#37 · Quote Reply

Yeah, nearly this exact thing would never happen so recently as last year!

Honestly, last year was still early, it had just begun to start thinking. LLMs only really got good ~6 months ago. With the current frontier though, not happening.

-1
wolframhydroxide sh.itjust.works wolframhydroxide@sh.itjust.works
Joined: 2024-07-25
#38 · Quote Reply

Honestly, last year was still early, it had just begun to start thinking. LLMs only really got good ~6 months ago. With the current frontier though, not happening.

Quite the moving goalpost you've got there.

4
kamen lemmy.world kamen@lemmy.world
Joined: 2023-06-19
#39 · Quote Reply

Please don't use swear words like "Fr*nch" on this Christian post.

5
SorryQuick lemmy.ca SorryQuick@lemmy.ca
Joined: 2023-11-20
#40 · Quote Reply

Quite the moving goalpost you've got there.

Does it matter what year I used initially? It was a quick guess, and the context should have made that clear. I always go with 2023 because this is the year most people decided LLMs were dumb (rightfully so) and didn’t try them since.

-1
1984 lemmy.today 1984@lemmy.today
Joined: 2023-07-28
#41 · Quote Reply

This is why I'm a huge advocate for the "/s" Like we're honestly just making our future AI overlords that much stupider and crueler when we fail to properly annotate our sarcasm

I dont want future Ai overlords and believe it leads to dystopia for humanity.

3
MIDItheKID lemmy.world MIDItheKID@lemmy.world
Joined: 2023-07-22
#42 · (edited) Quote Reply

Reminds me of that cheat in Counter Strike back in the day where you press Alt + F4 for infinite money.

15
FedX quokk.au FedX@quokk.au
Joined: 2026-04-30
#43 · Quote Reply

Reminds me of that cheat in Counter Strike back in the day where you press Alt + F4 for infinite money.

Is this a Windows thing? Only times I have used it are in computer labs... I actually don't even know how to install Windows other than like, version 8 in a VM without internet.

1
MIDItheKID lemmy.world MIDItheKID@lemmy.world
Joined: 2023-07-22
#44 · Quote Reply

Is this a Windows thing? Only times I have used it are in computer labs... I actually don't even know how to install Windows other than like, version 8 in a VM without internet.

Yes, alt+F4 is the "force close the foreground app/window" command in Windows. People used to say it in counter strike lobbies. It was always funny when you saw:

PlayerA: Remember if you are low on funds, press alt+f4 for infinite money
PlayerB: really?
PlayerA: yup!
PlayerB has disconnected

3
wonderingwanderer sopuli.xyz wonderingwanderer@sopuli.xyz
Joined: 2025-12-31
#45 · Quote Reply

I dont want future Ai overlords and believe it leads to dystopia for humanity.

I don't want them either. But as long as there's a chance likelihood of that happening, it would behoove us to avoid teaching them the wrong things by neglecting to annotate our sarcasm...

2
FedX quokk.au FedX@quokk.au
Joined: 2026-04-30
#46 · Quote Reply

Yes, alt+F4 is the "force close the foreground app/window" command in Windows. People used to say it in counter strike lobbies. It was always funny when you saw: PlayerA: Remember if you are low on funds, press alt+f4 for infinite money PlayerB: really? PlayerA: yup! PlayerB has disconnected

Thanks!

1
Skullgrid lemmy.world Skullgrid@lemmy.world
Joined: 2023-06-29
#47 · Quote Reply

Not in Quebec. Straight to jail!

I think they allow it as long as you have the Joual language pack, -tbnk

1
sem piefed.blahaj.zone sem@piefed.blahaj.zone
Joined: 2025-09-04
#48 · Quote Reply

I don't want them either. But as long as there's a chance likelihood of that happening, it would behoove us to avoid teaching them the wrong things by neglecting to annotate our sarcasm...

You use /s for hypothetical future AI

I use /s to communicate with my fellow fucking human beings.

We are not the same.

1
wonderingwanderer sopuli.xyz wonderingwanderer@sopuli.xyz
Joined: 2025-12-31
#49 · Quote Reply

You use /s for hypothetical future AI I use /s to communicate with my fellow fucking human beings. We are not the same.

Porque no los dos?

1
Post Reply
Back to top