Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6884357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:29:52+00:00 2026-05-27T05:29:52+00:00

Sorry for asking such a general question but this has been bugging me for

  • 0

Sorry for asking such a general question but this has been bugging me for days.

A friend gave me this piece of code (?) and wont tell me what it does, or even if it is C or bash or anything else.

From the look of it, it looks like C to me. Although I dont get why there are : on the sides.

:(){:|:&};:

Any clues will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:29:52+00:00Added an answer on May 27, 2026 at 5:29 am

    This is bash shell script, not C.

    It’s a fork bomb.

    Wikipedia explains it:

    :()      # define ':' -- whenever we say ':', do this:
    {        # beginning of what to do when we say ':'
        :    # load another copy of the ':' function into memory...
        |    # ...and pipe its output to...
        :    # ...another copy of ':' function, which has to be loaded into memory
             # (therefore, ':|:' simply gets two copies of ':' loaded whenever ':' is called)
        &    # disown the functions -- if the first ':' is killed,
             #     all of the functions that it has started should NOT be auto-killed
    }        # end of what to do when we say ':'
    ;        # Having defined ':', we should now...
    :        # ...call ':', initiating a chain-reaction: each ':' will start two more.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for asking a basic question like this but I've been reading on this
sorry for asking this question again but i didnt get much help on the
Sorry for asking such a question again. I've been looking for a solution for
I know this has to be an easy question; but I haven't been able
Sorry for this not being a real question, but Sometime back i remember seeing
Sorry if this sounds like a really stupid question, but I need to make
First of all sorry of asking such a dumb question, I am quite a
Sorry for asking what seems like such an obvious question. I have an adapter
Sorry for asking such a newbie question, I know it makes a few of
Sorry to be asking such similar question again, I am trying to read the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.