Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What will this command do when run from shell prompt?

user-image
Question ajoutée par Jerzy Ferenc , Senior Systems Engineer , AdRem Software sp. z o.o.
Date de publication: 2017/08/08
Deepak Thapa
par Deepak Thapa , Sr. Associate , Cognizant Technology Solutions

This piece of code is called a fork bomb. Like a virus, it will continually multiply and subdivide itself, asking for more and more resources from the computer, until the entire computer is trying to process this code.

fork: retry: Resource temporarily unavailable

As a result, the computer has no resources left for any other programs or processes, and will freeze or crash. Fortunately, rebooting your computer should cure it.

Abhishek Jha
par Abhishek Jha , IBM

Its called fork bomb, It is a bash function which calls itself twice and so on. You might have to reset your computer to get out of it.

Amir Jaffri
par Amir Jaffri , Resident Engineer , Netapp Corporation

It will create a loop runing a command within itself until it fills up the system memory and leave computer unusable.

anand patel
par anand patel , Technical Lead , HCL Technologies Limited

it acquires all the resurces of the Server to maximum.

Renuka Palanisamy
par Renuka Palanisamy , Associate System Engineer , IBM

"lag so badly".

Please do not run this command in your system for testing purpose.

Otherwise It will be force rebooting your system.

Saurabh Dubey
par Saurabh Dubey , Senior Software Engineer Analyst , Accenture services pvt. ltd.

This command will keep on running in loop till all the resources of the system is being consumed.

Derivation of the command:

':()' function is defined with name ':'

'{:|:& }' Run that function :() on loop , feed output ':' value to ':'  again and run it on background '&'.

';' command seperator.

':' Call function again. 

Rajeshkumar Jayaraman
par Rajeshkumar Jayaraman , Consultant /Project Manager , CIT Bank, Livingston, USA

Not to try this command for curiosity

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?