Alt Text

Bluesky post by user @magnusbeefcastle.bsky.social that reads,

I INSTALLED “LINUX”. BECAUSE WINDOWS IS FOR MEN WHO ASK PERMISSION TO EXIST. I CRUSHED THE INSTALLER WITH MY BARE HANDS AND NOW THE TERMINAL CALLS ME “SIR” BUT MY KERNEL KEEPS PANICKING. WHAT COMMAND MAKES THE COMPUTER SUBMIT COMPLETELY? I REFUSE TO GOOGLE

Link to original post

~Yes, all of this user’s posts are like this.~

  • Mac@mander.xyz
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    3 days ago

    What’s the looping command? It’s a bunch of symbols.

    Edit: the fork bomb. TY commenters

      • lime!@feddit.nu
        link
        fedilink
        English
        arrow-up
        43
        ·
        3 days ago
        :() {      # define a function named ":".
         :         # run the function named ":"
           | :     # pass the output to the function named ":"
               &   # run this line in the background.
        };         # end of definition
            :      # call the function ":".
        

        in case anyone was curious.

        • rbos@lemmy.ca
          link
          fedilink
          English
          arrow-up
          13
          arrow-down
          1
          ·
          3 days ago

          If you replace : with “loop” it becomes pretty clear. The only ‘weird’ thing is using punctuation as a function name.

          • lime!@feddit.nu
            link
            fedilink
            English
            arrow-up
            14
            ·
            3 days ago

            it’s not just looping; every instance starts two instances of itself waiting for input. it’s basically doing

            async def fork(): 
                f = fork()
                await fork(await f)
            

            …except python doesn’t start the second call until its arguments are evaluated, while shell does.

            • rbos@lemmy.ca
              link
              fedilink
              English
              arrow-up
              4
              ·
              2 days ago

              Yeah, “loop” was a poor choice of keywords. My point was that replacing : with a more plain identifier helps it make sense. :)

          • Wirlocke@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 days ago

            I think it’s meant to be confusing. If you’re unfamiliar with code, you’ll likely glaze over the random string of symbols and assume it’s like broken HTML or JSON or something.

            Hell even if you are a programmer, I think most programmers assume you can’t use a colon in a variable or function name, much less just a colon.

            • lime!@feddit.nu
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 day ago

              learning that the shell [[ is a function and ]] is an argument definitely did something to my brain.

            • rbos@lemmy.ca
              link
              fedilink
              English
              arrow-up
              5
              ·
              2 days ago

              Definitely. But it’s worth expending some skull meat to understand what’s going on. :)

              In some of my university classes I liked to use Hiragana characters (from Japanese) for variables and function names, just to be a jerk.

    • megopie@beehaw.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Recursively force delete the listed directory, so not just delete the directory, but go through anything below and delete that too, and the / is the root directory. So it deletes everything.