This is the sort of thing I was talking about with "Don't go running commands [...] unless you're sure what they're going to do [...]"
I did a breakdown of this one on the snoosite back in the day. Searching "fork bomb" on YouTube is probably a better way to get that breakdown these days.