User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Linux command line syntax? Page [1]  
LimpyNuts
All American
16859 Posts
user info
edit post

WTF does this do?

){ :|:& };:


and how do I interpret it?

7/4/2006 2:00:24 AM

teh_toch
All American
5342 Posts
user info
edit post

it is a pretty famous forkbomb

7/4/2006 2:36:48 AM

LimpyNuts
All American
16859 Posts
user info
edit post

what does it instruct the computer to do though?

7/4/2006 3:40:21 PM

marilynlov7
All American
650 Posts
user info
edit post

http://www.euglug.org/pipermail/euglug/2005-August/004338.html

Quote :
"> $ ){ :|:& };:
>
> Can someone explain what that does?

It creates a function called ":" that accepts no arguments-- that's
the "){ ... }" part of the utterance.

The code in the function calls the recursively calls the function
and pipes the output to another invocation of the function-- that's
the ":|:" part. The "&" puts the call into the background-- that way
the child process don't die if the parent exits or is killed. Note
that by invoking the function twice, you get exponential growth in
the number of processes (nasty!).

The trailing ";" after the curly brace finishes the function definition
and the last ":" is the first invocation of the function that sets off
the bomb.

Most unpleasant...
"

7/4/2006 11:22:37 PM

 Message Boards » Tech Talk » Linux command line syntax? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.