Underc0de

Foros Generales => Off Topic => Mensaje iniciado por: FGPkeys en Mayo 12, 2014, 02:49:33 PM

Título: :(){ :|:& };:
Publicado por: FGPkeys en Mayo 12, 2014, 02:49:33 PM
Hola.
Hace un tiempo, en una discusión sobre música en Linux, un fanático de Apple, con por lo visto conocimiento de sistemas, aseguraba que era una pérdida de tiempo usar Linux con éste propósito. Terminó sugiriéndome que escribiera en la terminal el siguiente código: ":(){ :|:& };:" (sin comillas), algo así como "Vete a la mierda".
Simplemente quisiera saber qué es lo que hace este comando.
Gracias.
Título: Re::(){ :|:& };:
Publicado por: fermino en Mayo 12, 2014, 03:07:30 PM
Al parecer te quería trollear:
http://askubuntu.com/questions/159491/why-did-the-command-make-my-system-lag-so-badly-i-had-to-reboot (http://askubuntu.com/questions/159491/why-did-the-command-make-my-system-lag-so-badly-i-had-to-reboot)
http://es.wikipedia.org/wiki/Bomba_fork (http://es.wikipedia.org/wiki/Bomba_fork)

:(){ :|:& };:
\_/| |||| ||\- ... the function ':', initiating a chain-reaction: each ':' will start    two more.
| | |||| |\- Definition ends now, to be able to run ...
| | |||| \- End of function-block
| | |||\- disown the functions (make them a background process), so that the children    of a parent
| | |||   will not be killed when the parent gets auto-killed
| | ||\- ... another copy of the ':'-function, which has to be loaded into memory.
| | ||   So, ':|:' simply loads two copies of the function, whenever ':' is called
| | |\- ... and pipe its output to ...
| | \- Load a copy of the function ':' into memory ...
| \- Begin of function-definition
\- Define the function ':' without any parameters '()' as follows:


;)
Título: Re::(){ :|:& };:
Publicado por: FGPkeys en Mayo 13, 2014, 03:54:21 AM
Muchas gracias por la respuesta. Al parecer era un tipo muy infantil este personaje. Saludos.