its a lot more readable if you replace the : with any other function name
fork() {
fork | fork &
};
fork
define a funktion called fork, which calls itself twice (call once, pipe ( “|” ) the result to the same function again which is run in a new thread in the background ( “&” )). Then call the newly defined function.
The : is used to make it look more like emoji.
Ok but actually what does this do?
its a lot more readable if you replace the : with any other function name
fork() { fork | fork & }; fork
define a funktion called fork, which calls itself twice (call once, pipe ( “|” ) the result to the same function again which is run in a new thread in the background ( “&” )). Then call the newly defined function. The : is used to make it look more like emoji.
https://en.m.wikipedia.org/wiki/Fork_bomb