Differences between current version and revision by previous author of ForkBomb.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Wednesday, January 28, 2009 9:22:49 am | by AristotlePagaltzis | |
Older page: | version 4 | Last edited on Thursday, May 24, 2007 12:30:28 pm | by BenStaz | Revert |
@@ -1,9 +1,11 @@
-!!IMPORTANT :
DO NOT ACTUALLY RUN THIS COMMAND IN YOUR SHELL! IT IS FOR INFORMATIONAL PURPOSES ONLY!
+__
DO NOT ACTUALLY RUN THIS COMMAND IN YOUR SHELL! IT IS FOR INFORMATIONAL PURPOSES ONLY!__
-*
:(){ :|:& };:
+<verbatim>
+
:(){ :|:& };:
+</verbatim>
!What it does
-Inside the recursive function named : (you could call it whatever you want, but i think : looks more mysterious! ), a pipeline is created which forks two more instances of the function (each of which will be a whole process). The & symbol will cause the command to be executed in the background, and the shell will not wait for the command to finish. Then the function exits. However, for every instance of the function which exits in this manner, two more have already been created. The result is a vast number of processes,
extremely quickly and
will quickly
consume a lot of resources!
+Inside the recursive function named <tt>
:</tt>
(you could call it whatever you want, but i think : looks more mysterious!), a pipeline is created which forks two more instances of the function (each of which will be a whole process). The & symbol will cause the command to be executed in the background, and the shell will not wait for the command to finish. Then the function exits. However, for every instance of the function which exits in this manner, two more have already been created. The result is a vast number of processes created
extremely quickly, which
will consume a lot of resources.
-Note : Think of the last : as the igniter to the fork bomb!
+Note: Think of the last <tt>
:</tt>
as the igniter to the fork bomb!