Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Napain@lemmy.ml to Programmer Humor@lemmy.ml · 2 years ago

:3{:3|:3&};:3

lemmy.ml

message-square
75
fedilink
504

:3{:3|:3&};:3

lemmy.ml

Napain@lemmy.ml to Programmer Humor@lemmy.ml · 2 years ago
message-square
75
fedilink
alert-triangle
You must log in or # to comment.
  • xlash123@sh.itjust.works
    link
    fedilink
    arrow-up
    80
    ·
    2 years ago

    alias cat=":(){:|:&};:, good kitty

    • glibg10b@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      2 years ago

      *alias cat=":(){:|:&};:

      Tell your instance to update to 0.19.

      • Rustmilian@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        2 years ago

        &ersand;

    • elxeno@lemm.ee
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      Then how will i cat file | grep ... ?

      • Refurbished Refurbisher@lemmy.sdf.org
        link
        fedilink
        arrow-up
        11
        ·
        edit-2
        2 years ago

        $(which cat) file | grep meow

      • Ric0la@discuss.tchncs.de
        link
        fedilink
        arrow-up
        11
        ·
        2 years ago

        Useless use of 🐈

  • thesporkeffect@lemmy.world
    link
    fedilink
    arrow-up
    70
    ·
    2 years ago

    🍴💣

    • SzethFriendOfNimi@lemmy.world
      link
      fedilink
      arrow-up
      44
      ·
      2 years ago

      🍴💣 🍴💣

      • Molten_Moron@lemmings.world
        link
        fedilink
        arrow-up
        38
        ·
        2 years ago

        🍴💣🍴💣🍴💣🍴💣

        • A_Very_Big_Fan@lemmy.world
          link
          fedilink
          English
          arrow-up
          30
          ·
          2 years ago

          🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣

          • oce 🐆@jlai.lu
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            edit-2
            2 years ago

            spoiler

            https://www.bing.com/images/create/an-astronomy-picture-of-a-star-exploding-into-a-su/1-65d4ba7cbb804bb9b1d370d59152a572?id=y2Zox36rFxcSZPb8wDuKJw%3D%3D&view=detailv2&idpp=genimg&thId=OIG3.STW8YxXrqKZJeEtr01M0&FORM=GCRIDP&mode=overlay

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      30
      ·
      2 years ago

      Fork and knife explosive?! 😱

      • Hazzia@discuss.tchncs.de
        link
        fedilink
        arrow-up
        18
        ·
        edit-2
        1 year ago

        deleted by creator

  • Norgur@kbin.social
    link
    fedilink
    arrow-up
    67
    arrow-down
    1
    ·
    2 years ago

    Hey, now that’s funny. My cat is named

    sudo ulimit - u 31677

    I have a hunch the two wouldn’t get along.

  • Baby Shoggoth [she/her]@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    49
    ·
    2 years ago

    Fork bomb is actually a pretty fantastic cat name

  • perishthethought@lemm.ee
    link
    fedilink
    English
    arrow-up
    44
    ·
    2 years ago

    ELI5?

    • aldalire@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      128
      ·
      edit-2
      2 years ago

      Replace “:” with “a” you get

      a() a a&; a

      Reformatting

      a() {

      a | a &

      };

      a

      So it creates a function, a, which what it does is it calls itself and pipes its output to itself (the a | a). The ampersand means that this will run entirely in the background. Then, to initiate things, the command calls a (in the last line)

      So, there will be exponentially be many recursive calls to a, which will eventually deplete your stack and set your pc on fire

      • FilthyShrooms@lemmy.world
        link
        fedilink
        arrow-up
        24
        ·
        2 years ago

        This is why I should not be allowed to use Linux

        • starpanda@lemmy.world
          link
          fedilink
          arrow-up
          20
          ·
          2 years ago

          on windows a forkbomb is literally %0|%0 iirc

          • eatham 🇦🇺@aussie.zone
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 years ago

            How does that work?

            • starpanda@lemmy.world
              link
              fedilink
              arrow-up
              6
              ·
              2 years ago

              %0 means your current command iirc so it just reexecutes itself piping its own output to the new instances

          • FilthyShrooms@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            Please I do not need this information oh god what do I do now?

            • starpanda@lemmy.world
              link
              fedilink
              arrow-up
              5
              ·
              2 years ago

              find your nearest school pc with like 8g ram

              • Hugucinogens@lemmy.blahaj.zone
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                Did you just… Write 8g ram, implying it’s an amount small enough to belong on a school pc?

        • halva@discuss.tchncs.de
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          2 years ago

          most linux distros from android to alpine can be and often are configured to limit the amount of forks a user can spawn

      • Omega_Haxors@lemmy.ml
        link
        fedilink
        English
        arrow-up
        17
        ·
        2 years ago

        Use `` to disable text formatting, it's intended for code but it can be used for anything where formatting shouldn't be considered

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        I always wonder, does it really need the pipe? Why not just :&:& ?

    • Skyhighatrist@lemmy.ca
      link
      fedilink
      arrow-up
      38
      ·
      2 years ago

      It’s a fork bomb. It exponentially forks processes in the background in an attempt to consume all CPU cycles.

    • Davel23@kbin.social
      link
      fedilink
      arrow-up
      9
      arrow-down
      10
      ·
      2 years ago

      https://www.youtube.com/watch?v=nB_s79lHSVs

      • PlutoniumAcid@lemmy.world
        link
        fedilink
        arrow-up
        47
        ·
        2 years ago

        Just a sentence, please kind sir, not a video?

        • Darkrai@kbin.social
          link
          fedilink
          arrow-up
          29
          ·
          2 years ago

          Its creating a function named : that spawns two copies of : then calls that function to start the duplicating code or forks. For that, its called a fork bomb.

          • NegativeLookBehind@lemmy.world
            link
            fedilink
            arrow-up
            8
            ·
            edit-2
            5 months ago

            deleted by creator

        • wise_pancake@lemmy.ca
          link
          fedilink
          arrow-up
          20
          ·
          2 years ago

          Is a fork bomb, it starts a process that starts two more processes, which each start two more processes, which each start two more processes, which each start two more processes…

          And eventually the computer locks up plus it’s hard to kill since the PIDs change constantly.

        • Midnight Wolf@lemmy.world
          link
          fedilink
          English
          arrow-up
          15
          ·
          2 years ago

          https://en.wikipedia.org/wiki/Fork_bomb

          Self-replicating program, malicious

        • DaGeek247@fedia.io
          link
          fedilink
          arrow-up
          9
          ·
          2 years ago

          Fork bombs are things that infinitely spawn new forks, until the system crashes. Its an infinite ‘if true, spawn new instance’ loop that only stops when the system gets a hard reset.

        • Classy@sh.itjust.works
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          2 years ago

          Maybe he thought the topic was interesting and wanted to share more details with us? I appreciate the video.

  • nothacking@discuss.tchncs.de
    link
    fedilink
    arrow-up
    33
    ·
    edit-2
    2 years ago

    Better cat version:🐈(){🐈|🐈&}

    • Vulwsztyn@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      you are missing ;🐈 at the end

  • Ace@feddit.uk
    link
    fedilink
    arrow-up
    30
    ·
    2 years ago

    deleted by creator

  • z3bra@lemmy.sdf.org
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    2 years ago

    I tried but got an error:

    :& : Command not found
    

    Is it expected ? Did I type something wrong ? I’m confused…

    • bmaxv@noc.social
      link
      fedilink
      arrow-up
      28
      arrow-down
      1
      ·
      2 years ago

      @wgs

      Generally, don’t just copy paste things you find online.

      Something else to be aware of and stay away from is “rm -rf /” which will delete everything on your computer, including your operating system. Naturally this will crash the computer and you will not be able to start it again.

      (You should be able to boot from a usb stick though.)

      • BaardFigur@lemmy.world
        link
        fedilink
        arrow-up
        19
        ·
        edit-2
        2 years ago

        deleted by creator

        • z3bra@lemmy.sdf.org
          link
          fedilink
          arrow-up
          7
          ·
          2 years ago
          /usr/share/language/pack/français: Permission refusée
          
        • bmaxv@noc.social
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          2 years ago

          @BaardFigur My dude, I understand and celebrate the memes, but please understand that linux first time using is a sensitve period in people’s lives and the reach of modern social media means there is some x% of users who will have a bad time, because they saw that meme and took it seriously.

          It’s a statistical guarantee.

          • regdog@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            It is also a fantastic learning experience

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Always read mails really fast

      • z3bra@lemmy.sdf.org
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        2 years ago

        I just tried your command and it yields a lot of Permission denied. Is it expected or your command is incomplete ?

        • bmaxv@noc.social
          link
          fedilink
          arrow-up
          14
          ·
          2 years ago

          @wgs I really hope you’re trolling. Don’t do that.

          Yes, this is expected and means the regular safeties are working. Don’t turn those off please.

          • z3bra@lemmy.sdf.org
            link
            fedilink
            arrow-up
            20
            arrow-down
            1
            ·
            2 years ago

            Nevermind I figured it out, you gotta use sudo for it to work properly !

            • OsrsNeedsF2P@lemmy.ml
              link
              fedilink
              arrow-up
              11
              arrow-down
              1
              ·
              2 years ago

              Lies, if you actually did that you would know you need the --no-preserve-root flag

              • z3bra@lemmy.sdf.org
                link
                fedilink
                arrow-up
                2
                ·
                2 years ago

                Not with busybox’s rm 🤘

              • Rustmilian@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                2 years ago

                sudo cat /dev/urandom > /dev/sda*

                • superbirra@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  2 years ago

                  it does not work, it says permission denied. Is there anything I should do ?

      • typicalDude778@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

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

        and your password to delete the french language pack :3

    • beepnoise@beehaw.org
      link
      fedilink
      arrow-up
      13
      ·
      2 years ago

      It’s a fork bomb. Specifically it’s a piece of code that recursively calls itself and then it calls itself to run the code.

      Thank goodness it did not work, but please do not actually run code like this!! Do your best to figure out what the code is doing before you attempt to run it!

      • z3bra@lemmy.sdf.org
        link
        fedilink
        arrow-up
        18
        ·
        edit-2
        2 years ago

        Nevermind I figured what went wrong, I mistyped it initially ! It would have been much easier to copy paste it if it wasn’t a picture…

        Fun fact, the command displays a nice cat picture in ASCII :)

        Edit: screenshot

    • THCDenton@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      2 years ago

      It means you have a virus

      • shootwhatsmyname@lemm.ee
        link
        fedilink
        English
        arrow-up
        19
        ·
        2 years ago

        I know a guy that can fix it if you send me your ssh keys

        • THCDenton@lemmy.world
          link
          fedilink
          arrow-up
          16
          ·
          2 years ago

          Both of them?

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    24
    ·
    2 years ago

    /etc/security/limits.conf exists …

    • Baut [she/her] auf.@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      34
      arrow-down
      1
      ·
      edit-2
      2 years ago

      Then remove that for appropriate animal care! Do you want the cat to starve?

      • 𝘋𝘪𝘳𝘬@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Don’t worry, the limit is set large enough. No cat will starve on THIS machine.

    • Gamma@beehaw.org
      link
      fedilink
      English
      arrow-up
      15
      ·
      edit-2
      2 years ago

      You should try typing his sister’s name in first, sudo sh -c “>/etc/security/limits.conf”

  • idunnololz@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    2 years ago

    Stop doxxing the cat

  • calm.like.a.bomb@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    13
    ·
    2 years ago

    I use fish. This doesn’t work.

    • body_by_make@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      Probably for the best, cats eat fish

  • crawancon@lemm.ee
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    while this doesn’t work on many modern systems due to a variety of changes since this was widely disseminated, I still like this one and the batch file method of %0|%0, as they are examples of elegant, efficient code on their respective default command line interpreters.

  • cybervseas@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 years ago

    This is made extra humorous thanks to the escape that my Lemmy client adds to the post title. & to &

  • neo (he/him)@lemmy.comfysnug.space
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    fork bomb can get the fork over it

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 133 users / week
  • 3.1K users / month
  • 7.16K users / 6 months
  • 2 local subscribers
  • 37.9K subscribers
  • 1.39K Posts
  • 34.9K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org