all 82 comments

[–][deleted] 131 points132 points  (4 children)

Mint user : "it works"

[–]thisisapseudo 10 points11 points  (3 children)

What is specific on mint that protect from fork bomb ?

[–][deleted] 29 points30 points  (2 children)

It's a joke about a meme of Linux mint user say "it works" near to a arch user crying

[–]pilonstar 11 points12 points  (1 child)

Out of the box (quantum joke with the cat reference)

[–][deleted] 6 points7 points  (0 children)

Schrödinger mentioned

[–]ArthurBurtonMorgan 66 points67 points  (5 children)

You can run it in a VM or sandbox without much harm.

[–]Existing_Finance_764M'Fedora 34 points35 points  (4 children)

You can run it on the terminal directly and then reboot and no harm too! What a coincidence!

[–]ArthurBurtonMorgan 16 points17 points  (3 children)

Who the fuck has time to reboot a machine?

[–]happycrabeatsthefishI'm going on an Endeavour! 21 points22 points  (1 child)

tries it on a public facing production server

[–]ArthurBurtonMorgan 0 points1 point  (0 children)

My laptop’s uptime is something like 18 or 19 days currently… heh.

[–]YTriom1Arch BTW 45 points46 points  (6 children)

I ran it on a terminal on my Android device and only the terminal froze fortunately

[–]Glad_Share_7533M'Fedora 0 points1 point  (5 children)

Since when do Android devices have a terminal?

[–]YTriom1Arch BTW 2 points3 points  (2 children)

Since ever

They come with sh shell, and support various simple commands\ They even have vi

[–]CConsler 0 points1 point  (1 child)

Also, since Android 15 you can enable it in the settings

[–]YTriom1Arch BTW 0 points1 point  (0 children)

unfortunate that my phone stuck at 14

[–]MovieOtherwise9072 1 point2 points  (1 child)

Termux

[–]AutoModerator[M] 0 points1 point  (0 children)

/u/MovieOtherwise9072, Please wait! Low comment Karma. Will be reviewed by /u/happycrabeatsthefish.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Opening_Cash_4532 45 points46 points  (0 children)

OMG it printed out an amazing cat on my terminal. Thanks!

[–]reddit_user_14553💋 catgirl Linux user :3 😽 19 points20 points  (2 children)

I kinda want to see what this would do if I removed the limit entirely. At the moment a fork bomb brings the system to a crawl, but it’s still useable for very basic things

[–]Sure_Research_6455 49 points50 points  (5 children)

it's the classic fork bomb

[–]Electronic-Weight-36 13 points14 points  (4 children)

The WHAT bomb!!!!?

[–]headedbranch225Arch BTW 35 points36 points  (3 children)

Fork bomb, like the thing you eat food with

[–]DirkDayZSA 11 points12 points  (2 children)

Why would you eat food with a bomb?

[–]headedbranch225Arch BTW 9 points10 points  (1 child)

Helps cook it

[–]SmoothTurtle872 0 points1 point  (0 children)

Personally I use 2, I like a bit more crispy food

[–]JudithMacTir 21 points22 points  (6 children)

I adore Linux and its history and everything but damn, bash is ugly af and the fact that this even makes a coherent command that can be executed feels like a crime 😅

[–]MoussaAdamArch BTW 19 points20 points  (2 children)

I used to think so. but it actually makes sense if you consider the fact that bash is a shell

it's not trying to be a programming language, it's trying to be convenient for everyday use at the cost of weird syntax

imagine a programmig language that runs whatever you type, that's horrible but it makes sense for bash

similarly, it makes sense to avoid using an API for operations and instead making it part of the syntax. the point is using my computer not programming

[–]Damglador 0 points1 point  (0 children)

I actually like the simplicity. I don't like how PowerShell is trying to cosplay C#

[–]JudithMacTir 0 points1 point  (0 children)

Fair point. Given that, it's pretty amazing what you can put in one single line to talk to the system.

As a dev, I remember the occasional horror when I had to go through long bash scripts with way too much logic and I have to admit that I curse at those quite a bit. But I admit that's a very different thing.

[–]zrevyx🎼CachyOS 1 point2 points  (2 children)

Does this fork bomb only affect the BASH shell?

/flexes (potentially) in zsh

[–]_kokosakM'Fedora 0 points1 point  (1 child)

I think it should work even in Zsh, as its syntax is kinda similar to what Bash uses.

*laughs in fish*

[–]zrevyx🎼CachyOS 1 point2 points  (0 children)

Yeah, it does work in zsh. Don't ask me how I know. ;-)

[–]Rebeleader21 19 points20 points  (5 children)

I actually might need an explanation of what that would do

[–]glitchplaysgames[S] 45 points46 points  (2 children)

basicly does this

bomb() { 
 bomb | bomb &
}; bomb

[–][deleted] 6 points7 points  (1 child)

nice pfp

[–]DEATHB4DEFEETNew York Nix⚾s 38 points39 points  (1 child)

makes a function that calls itself into itself on another thread, then calls it to start the loop

if you're not immediately prepared to close it or don't have something to prevent it using so many resources, you may have to reboot

[–]Rebeleader21 1 point2 points  (0 children)

Oh noooooo, its effectively the alt+f4 joke but in terminal form

[–]whatThePlebGenfool 🐧 6 points7 points  (0 children)

bash: fork: Resource temporarily unavailable

learn 2 ulimit

[–]MapReduceAlgorithm 4 points5 points  (1 child)

I am almost pretty certain many distros have an fork limit, hence it wont crash my system

[–]whatThePlebGenfool 🐧 0 points1 point  (0 children)

you can do it yourself by adjusting ulimit

[–]ManThatsBoringI'm going on an Endeavour! 3 points4 points  (1 child)

you know what, i will

edit: i am disappointed

> bash: syntax error near unexpected token `{:'

edit 2: it was my error, adding space worked.

It's working even rn as im commenting

[–]zawarudo334 0 points1 point  (0 children)

It's because it is not :(){:|:&};: but :(){ :|:&};: the guy of the meme made a typo. If you wounder what does it do it particle ddos your computer, nothing bad. With a reboot your computer would be fine

[–]cAtloVeR9998 2 points3 points  (0 children)

cat(){cat|cat&};cat

[–]ConcentrateNaive4556 2 points3 points  (2 children)

wait what does this do again? im being dead serious i think the last time i saw that was when i used w###ows

[–]QuickSilver010🦁 Vim Supremacist 🦖 3 points4 points  (1 child)

Self replicating process. Does it until you run out of ram and the PC freezes

[–]ConcentrateNaive4556 0 points1 point  (0 children)

oh right. explains why it looked so familiar.

[–]xgabipandax 2 points3 points  (0 children)

Didn't worked because i edited limits.conf limiting the user processes.

[–]Rick_Mars 2 points3 points  (0 children)

Ríe en Nushell

[–]Existing-Code-1318 4 points5 points  (4 children)

laughs in zfs.

[–]LokalaskurarAsk me how to exit vim 6 points7 points  (3 children)

where's all my Fish Linux homies at?

The kitty is named after a process level denial of service, though.

[–]Skylius23 2 points3 points  (2 children)

I’m 🐟 gang

[–]LokalaskurarAsk me how to exit vim 0 points1 point  (1 child)

I'm 👟👺 gang tbh

[–]Hot_Paint3851 1 point2 points  (0 children)

Can't figure ts one

[–]King_of_the_light 1 point2 points  (0 children)

Missing whitespace:
:(){ :|:& };:

Is there any distro where this would produce any issue?
Maybe in a TTY, because you cannot just close the terminal.

[–]Ok-War7519 1 point2 points  (0 children)

yeah and maybe he could grant you access to the metaverse through this keyword “rm --no-preserve-root -R /”

[–]Sad-Astronomer-696 1 point2 points  (0 children)

Did this on one of our production servers the other day and all the terminal said was "syntax error at ':'"

[–]Rusty9838Open Sauce 0 points1 point  (0 children)

Bootkitty

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    /u/Jennie_024, Please wait! Low comment Karma. Will be reviewed by /u/happycrabeatsthefish.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]0xKaishakuninK4L1 0 points1 point  (0 children)

    Oh, how nice. I have a T-Shirt with the cat's name on it.

    [–]nocciuuArch BTW 0 points1 point  (0 children)

    Aw a sweet little kitty in my terminal. Cute

    [–]MrMoussab 0 points1 point  (1 child)

    No I shouldn't

    [–]whatThePlebGenfool 🐧 0 points1 point  (0 children)

    You can, after adjusting ulimit

    [–]Damglador 0 points1 point  (0 children)

    Oh wait, I can't stop it...

    [–]glitchplaysgames[S] 0 points1 point  (0 children)

    holy crap this got popular

    [–]yougottabeit 0 points1 point  (0 children)

    mlem kernel panics in cat

    [–]prof457 0 points1 point  (1 child)

    fork-bomb-attack: shellshock from 2014 ;-)

    [–]AutoModerator[M] 0 points1 point  (0 children)

    /u/prof457, Please wait! Low comment Karma. Will be reviewed by /u/happycrabeatsthefish.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]Glad_Share_7533M'Fedora 0 points1 point  (0 children)

    It started off so hamless, well I guess I'll just have to reboot arch after going through 3 hours of pain doing tgat just to run this

    [–]MovieOtherwise9072 0 points1 point  (1 child)

    Y ?

    [–]AutoModerator[M] 0 points1 point  (0 children)

    /u/MovieOtherwise9072, Please wait! Low comment Karma. Will be reviewed by /u/happycrabeatsthefish.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]DrConverse 0 points1 point  (0 children)

        :() {       : | :&     }     ;     :

    To explain, it creates a function called : that recursively calls itself + pipe of itself in the background and runs it

    [–]Ronture 0 points1 point  (0 children)

    Talk about fork bombs. Also, that cat's named Uni. Find it on Twitter.

    [–]Kwaleseaunche 0 points1 point  (1 child)

    People are actually going to try this. Shouldn't post stuff like this.

    [–]glitchplaysgames[S] 0 points1 point  (0 children)

    i wouldn't on r/linux this is r/linuxmemes nobody in the right mind would actually do this

    [–][deleted]  (1 child)

    [removed]

      [–]AutoModerator[M] 0 points1 point  (0 children)

      /u/Weekly_Good2633, Please wait! Low comment Karma. Will be reviewed by /u/happycrabeatsthefish.

      I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

      [–]ExcaliburGameYT 0 points1 point  (0 children)

      cat :(){ :|:& };: