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!"

all 45 comments

sorted by: hot top controversial new old
[–] 251 points 1 month ago (5 children)

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

  • source
  • hideshow 5 child comments
  • [–] 177 points 1 month ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 185 points 1 month ago* (14 children)

    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.

  • source
  • hideshow 14 child comments
  • [–] 37 points 1 month ago* (4 children)

    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...

  • source
  • parent
  • hideshow 4 child comments
  • [–] -2 points 1 month ago (2 children)

    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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 13 points 1 month ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 1 month ago*

    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.

  • source
  • parent
  • [–] -3 points 1 month ago (5 children)

    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.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 1 month ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] -1 points 1 month ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 month ago (1 child)

    Quite the moving goalpost you've got there.

  • source
  • parent
  • hideshow 1 child comment
  • [–] -1 points 1 month ago

    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.

  • source
  • parent
  • [–] 126 points 1 month ago

    reminds me of this meme

  • source
  • [–] 68 points 1 month ago (9 children)
  • [–] 103 points 1 month ago (8 children)

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

  • source
  • parent
  • hideshow 8 child comments
  • [–] 37 points 1 month ago (7 children)
    # rm -fr /
    rm: it is dangerous to operate recursively on '/'
    rm: use --no-preserve-root to override this failsafe
    
  • source
  • parent
  • hideshow 7 child comments
  • [–] 31 points 1 month ago (1 child)

    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.

  • source
  • hideshow 1 child comment
  • [–] 18 points 1 month ago (2 children)

    Always remove the French language pack.

  • source
  • hideshow 2 child comments
  • [–] 15 points 1 month ago* (last edited 1 month ago) (3 children)

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

  • source
  • hideshow 3 child comments
  • [–] [S] 1 point 1 month ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 month ago (1 child)

    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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 15 points 1 month ago

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

  • source
  • [–] 8 points 1 month ago

    Great tip, it should be implemented more widely

  • source
  • [–] 5 points 1 month ago
    [+] -8 points 1 month ago

    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.

  • source