Crashed my machine running linux Mint. I couldn't Google it, so I had to try it. I don't know what I expected.
Can someone explain how it works?
Re:Yes `yes no`
by cheeseprocedure on Thursday March 14, 2013 @12:37AM
(#5373117)
This is a very nice breakdown:
Be careful running commands that you don't understand! I've been bitten by that before...
I don't know about linux (and I really should in this case as it's my 'field'), but at least on mac, you can restrict the number of child processes a process can spawn with `ulimit -u`:
zooey:~ duane$ ulimit -u
709
Actually, you're wrong. At least on a mac (IIRC) it caps the process number so fork bombs just fill the console with errors. I'm sure you can get around it but that kind of defeats its simplicity.
EDIT: I mean, don't get me wrong, it still really bogs your computer down, but you can still kill the parent bash process in a few seconds.