LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-10-2008, 09:43 PM   #1
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Linux gurus - need an explanation for the following shell commands sequence


:(){ :|:&};:


DO NOT TRY IT ON A PRODUCTION BOX!
Can anyone explain what the above sequence performs?
 
Old 02-10-2008, 09:48 PM   #2
peart
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 31

Rep: Reputation: 16
It's a fork bomb - oldest trick in the book. It defines a function which calls itself over and over again til the comp dies an ugly death...

http://en.wikipedia.org/wiki/Fork_bomb

Last edited by peart; 02-10-2008 at 09:56 PM.
 
Old 02-11-2008, 02:47 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
That'll teach you to type random stuff in the terminal, maybe you'll type this by accident. The wiki says the cure for it is:

Code:
while (sleep 100 &!) do; done
That's for z-shell, I suppose it must be translated for bash.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load sequence of commands automatically at startup? mac1234mac Linux - Software 3 05-06-2006 04:17 AM
wat are the sequence of commands to upgrade GCC 3.2.0 to 3.4.0 newbloggy Linux - Newbie 2 04-25-2006 05:43 AM
linux shell implementation for a set of commands syeda tabassum Linux - Software 0 11-03-2004 11:53 AM
Linux commands in shell scripts james_cwy Linux - Newbie 4 11-10-2003 01:14 AM
Basic Shell commands and Linux Administration Gear_freak2000 Linux - Newbie 6 06-01-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration