this post was submitted on 03 Dec 2023
695 points (95.3% liked)

linuxmemes

21291 readers
1472 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • 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.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 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. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    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 fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] Manifish_Destiny@lemmy.world 244 points 11 months ago (5 children)

    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 71 points 11 months ago (1 children)

    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 14 points 11 months ago

    Mine had the text "you are won solitaire" on them

    [–] caseyweederman@lemmy.ca 54 points 11 months ago

    Good old Bobby Droptables

    [–] LetterboxPancake@sh.itjust.works 21 points 11 months ago

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

    [–] eating3645@lemmy.world 19 points 11 months ago (1 children)

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

    [–] Pyroglyph@lemmy.world 58 points 11 months ago (3 children)

    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 9 points 11 months ago (1 children)

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

    [–] itslilith@lemmy.blahaj.zone 22 points 11 months ago* (last edited 11 months 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

    load more comments (2 replies)
    [–] savvywolf@pawb.social 85 points 11 months ago

    If you're cold, they're cold.

    Run this command to warm up your computery friends.

    [–] vankappa@lemmy.world 74 points 11 months ago (3 children)

    don't do this it INSTALLS MUSTARD GAS !

    [–] konalt@lemmy.world 47 points 11 months ago (1 children)

    sudo apt-get install mustard-gas

    [–] magic_lobster_party@kbin.social 45 points 11 months ago (1 children)

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

    [–] TheGreenGolem@lemm.ee 21 points 11 months ago
    [–] auf@lemmy.ml 13 points 11 months ago* (last edited 11 months ago) (2 children)

    cd ./mustard-gas ; make && make install

    load more comments (2 replies)
    load more comments (1 replies)
    [–] uis@lemmy.world 42 points 11 months ago (1 children)
    [–] Asudox@lemmy.world 8 points 11 months ago
    [–] HiddenLayer5@lemmy.ml 38 points 11 months ago (2 children)

    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 33 points 11 months ago (4 children)

    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.

    [–] NikkiDimes@lemmy.world 21 points 11 months ago (2 children)

    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.

    load more comments (2 replies)
    load more comments (3 replies)
    load more comments (1 replies)
    [–] dream_weasel@sh.itjust.works 32 points 11 months ago (1 children)

    Hard to pronounce but ok I guess.

    [–] ultra@feddit.ro 27 points 11 months ago

    It's pronounced "forky".

    [–] MonkderZweite@feddit.ch 30 points 11 months ago (1 children)

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

    [–] huginn@feddit.it 135 points 11 months ago (12 children)

    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 38 points 11 months ago (1 children)

    And on a modern Linux system, there's a limit to how many can run simultaneously, so while it will bog down your system, it won't crash it. (I'm running it right now)

    [–] TheWoozy@lemmy.world 15 points 11 months ago
    [–] cashews_best_nut@lemmy.world 10 points 11 months ago

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

    [–] MonkderZweite@feddit.ch 8 points 11 months ago (1 children)
    load more comments (1 replies)
    load more comments (9 replies)
    [–] baatliwala@lemmy.world 28 points 11 months ago (4 children)

    If you actually want that cat it's Uni

    load more comments (4 replies)
    [–] stjobe@lemmy.world 28 points 11 months ago* (last edited 11 months ago) (1 children)

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

    [–] Bizarroland@kbin.social 14 points 11 months ago* (last edited 11 months ago) (1 children)

    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 12 points 11 months ago* (last edited 11 months 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 &

    [–] Ooops@kbin.social 22 points 11 months ago

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

    [–] Sprokes@jlai.lu 19 points 11 months ago (4 children)

    Does it work on fish shell?

    [–] Knusper@feddit.de 26 points 11 months ago* (last edited 11 months ago) (4 children)

    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 21 points 11 months ago (2 children)

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

    [–] Knusper@feddit.de 11 points 11 months ago* (last edited 11 months ago) (1 children)

    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.

    load more comments (1 replies)
    load more comments (1 replies)
    load more comments (3 replies)
    load more comments (3 replies)
    [–] possiblylinux127@lemmy.zip 17 points 11 months ago (2 children)

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

    load more comments (2 replies)
    [–] CosmicTurtle@lemmy.world 13 points 11 months ago

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

    [–] phorq@lemmy.ml 13 points 11 months ago* (last edited 11 months ago)

    touch cat
    echo Oreo > cat
    cat cat

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

    [–] redcalcium@lemmy.institute 13 points 11 months 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.

    [–] Crackhappy@lemmy.world 12 points 11 months ago

    Eh .. fork you!

    [–] Gruntyfish@lemmy.world 10 points 11 months ago

    I prefer spoon bombs, thanks.

    [–] jaybone@lemmy.world 10 points 11 months ago

    It’s interesting that colon is a valid function name. Replace it with something else and it’s much more clear to understand what is going on here.

    [–] AeonFelis@lemmy.world 9 points 11 months ago

    Is this Elon Musk's cat?

    load more comments
    view more: next ›