Lunduke
News • Science & Tech
The Fork Bomb: What it is, how it works, and where it originated
The idea started in 1969... and it's been causing computers to crash ever since.
December 03, 2023
post photo preview
:(){ :|:& };:

That simple line has been crashing systems in the Linux world for years — It is known as the (infamous) “BASH Fork Bomb”.

When run in a GNU/BASH shell, this BASH variant of the Fork Bomb will bring your average Linux system to its knees, lickety-split. A mere handful of characters that can cause a computer to cry “Uncle.”

But what, exactly, is a “Fork Bomb”? How do they work? And where on this green Earth of ours were they first created?

Come with me on a journey into the history, design, and usage of one of the most dastardly ideas in all of computing… of The Fork Bomb!

What is a Fork Bomb?

The idea of a Fork Bomb is simple: Create a piece of code that does one thing and one thing only: replicate running instances of itself. And do so as quickly as possible.

Here, a visual will help drive the idea home.

In this case each Bunny Rabbit represents one instance of the Fork Bomb. Each bunny makes two new bunnies. Quickly. Multiplying like, well, rabbits.

Each of those adorable little bunny rabbits may not take up much RAM… or much CPU time… but imagine 20 of them. Or 1000. Or, like, a bazillion?! That Fork Bomb will continue making running copies of itself just as long as the system allows it to (by continuing to have available memory or not fully crash).

With how quickly each Fork Bomb replicates itself… and the number of copies growing exponentially… you can see how they can become a problem in a hurry. Often causing a system to lock up quicker than you can say, “Maybe I shouldn't have pressed Enter.”

A real-world example… and how it works

Let’s take a look at that BASH version of the Fork Bomb again (as that is one of the most popular and famous examples).

(If you don’t know how BASH scripting works, no worries. I’ll break it down… make it nice and easy.)

:(){ :|:& };:

Ok. So how does this, ridiculous looking, collection of semi-random seeming characters, actually work?

Let’s break that apart into multiple lines to make it all easier to read.

: ( ) {

   : | : &

} ; :

This… is a BASH script function.

But there’s something… weird about it. Note the many usages of “:”? In this case “:” is being used as a function name.

“Why is using “:” as a function name weird,” you ask?

Because, on most UNIX-y systems, it is not allowed to use a character in a function name other than letters and numbers (and underscores). But the GNU version of BASH — which is commonly used on oh-so-many Linux systems — allows : and so many other characters to be used.

Why does GNU allow a “:”? Who knows. GNU be crazy.

Regardless…

Let’s replace the “:” in that BASH script with “rabbit”. That will, in addition to making it run on more UNIX systems, make this a bit easier to read.

rabbit() {
rabbit | rabbit &
}; rabbit

There. So much better. Here we go. Line by line.

Line 1: rabbit() {

That first line does something simple. It defines a function named “rabbit”. That’s it and that’s all.

Line 2: rabbit | rabbit &

Line 2 is the insidious part.

It calls the function named “rabbit”, and sends the output of that function to the function named “rabbit.”

But, here’s the thing, there really isn’t any output of the “rabbit” function. So this is really just a fancy way of calling the “rabbit” function twice… at the same time.

Yeah. The “rabbit” function calls itself, from within itself, then calls itself again.

Oh, and that “&” at the end? That's the BASH way of telling “rabbit” to run in the background.

The net result? Every “rabbit”, makes two new “rabbit”s.

Line 3: }; rabbit

That last nine simply ends the “rabbit” function… and then calls itself.

Note: I highly recommend not running this code on your system unless you do so in a virtual machine. Without taking the proper precautions… this will bring your system to its knees.

Every variation of a Fork Bomb operates in a roughly similar fashion. A small piece of code that creates copies of itself… repeatedly. Thus eternally replicating itself until the system runs out of resources.

The first Fork Bomb

The very first known usage of a “Fork Bomb” was way back in 1969 at the University of Washington.

There, a Burroughs B5500 computer had been installed three years earlier. A big computer that provided the first time-sharing system on the University of Washington campus (through a series of dial-up modems running at 110 baud). This was also the first computer at the University of Washington to provide disk storage for user files. Pretty cool.

A Burroughs B-5500. Not the one at the U of W, though. Classy looking machine, right?

On that big, beautiful Burroughs B-5500, someone reportedly wrote a small bit of code that would make two copies of itself — over and over again — until the memory of the machine was full and the entire system would crash.

That intrepid programmer named that tiny little program, appropriately: “RABBITS”

Fun historical tidbit: RABBITS for the Burroughs B-5500 was not, technically the first computer virus. That distinction appears to go to the 1971 “Creeper Virus”. While RABBITS predated Creeper by a good two years… RABBITS doesn’t really act like a virus. It requires a user to explicitly run it in order to cause its own mischeif.

The 1974 “Wabbit”

A similar piece of code was written on an IBM System/360, a few years later, in 1974. Clearly inspired by “RABBITS”, this new code was called “Wabbit” and was, as Elmer Fudd might say, quite “wascally”.

The IBM System/360 Model 22 control panel. That thing was awesome looking.

Legend has it that the individual who created “Wabbit” ran the program on the System/360 at work… causing the entire system to crash. The man, again according to legend, lost his job.

Fun bit-o-trivia: As years went on any program that would self-replicate when ran by the user… but wasn’t actually a virus… would become known as a "wabbit.” in honor of this particular event.

Some other variations on the Fork Bomb

There have been Fork Bomb type bits of code written in just about every language you can imagine. At the beginning we covered how to write a Fork Bomb in BASH. But, because this sort of mayhem is simply too much fun, below you will find code to create similar bits of functionality in several other programming languages.

Enjoy.

Just… you know… try not to get yourself fired.

Fork Bomb in C:

int main(void) {
for (;;) {
    fork();
}
}
Fork Bomb in Python:

#!/usr/bin/env python

    import os
    while True: os.fork()

Fork Bomb in Ruby:

#!/usr/bin/env ruby
loop { fork { bomb } }
community logo
Join the Lunduke Community
To read more articles like this, sign up and join my community today
6
What else you may like…
Videos
Podcasts
Posts
Articles
Nix Fork Demands Contributors Support Multiple Personality Disorder

Lix, a fork of the Nix Linux package manager, prohibits "Transphobia", "Peddling Right-wing Ideology", and "Pluralphobia". With a goal of rewriting everything in Rust.

More from The Lunduke Journal:
https://lunduke.com/

00:11:20
GTK2 Brought Back From the Dead

An "unofficial community-maintained fork of historical GTK2" has been started, and is hosted over at the Devuan project. Because sometimes older is better.

More from The Lunduke Journal:
https://lunduke.com/

00:11:14
Ubuntu Linux Goes All-In on AI

"Al features will be landing in Ubuntu throughout the next year," says Ubuntu VP.

More from The Lunduke Journal:
https://lunduke.com/

00:18:16
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

😡 It appears that the "Role of Government" is to "SH!T in the People's Bed."
"Age Verification" is a CRITICAL Priority to "Protect Children."
💾 Meanwhile...

  • [from article] California’s 911 system is on the verge of going dark. The system is experiencing upwards of 62,000 minutes of outages per month. Engineers have to buy old bits of hardware on eBay. And Gavin Newsom, who spent $500 million on a failed upgrade, is making everything worse.

🙄 Yeah, maybe you get stabbed to death, but NEW LAWS will stop 14-year-olds from ILLEGALLY looking at the Weather Channel on UNAPPROVED Hardware which uses "Legacy OS" Technology.

Need a cop in California? Better hurry, because their 911 system is about to go belly up... - Revolver News
https://revolver.news/2026/04/need-a-cop-in-cali-better-hurry-because-their-911-system-is-about-to-go-belly-up/

My Take: It's the Bureaucrats and Political Influence in Spending as the Problem.... [Disclosure: I learned on paper, pen, whiteboards/chalkboards, and books that would be used for 5 years, instead of replacement every other year.]

[from article below] For the past couple of decades, school districts have raided their rainy day funds, issued bonds, and gone broke paying for iPads and Chromebooks, educational software, and specially trained personnel tasked with helping faculty use these products. And aside from a few district bureaucrats safely hidden in a nondescript office building that the district somehow owns, no one really knows how much any of this costs.

  • Ironically, what’s worse than this useless software is the software we actually do have to use. Whether it involves recording grades, taking attendance, referring misbehavior, or compiling standardized assessment data for each student, these programs are, as a rule, terrible. They are poorly designed, convoluted, and ...
April 29, 2026

AI Opportunity in Full Flight

I write as a consultant, someone who sells his skills to enterprise clients. Those who hate AI can feel free to skip this post. Those who fear for their jobs, this post should bring hope.

The wave of “automating enterprise systems with AI agents” is in full swing. It’s early, but we are past the “everyone is just kicking the tires”. The early adopters have been deploying for a year now.

Now is the time to train and orient yourself to working in this area. It is the work that will be happening for the next 15 years. You aren’t late. The scramble is on to hire those who already have the skills and experience.

This is precisely the condition I knew would happen when I saw ChatGPT 3 years ago. I’ve seen waves come before - networked databases (as opposed to mainframes), the World Wide Web, Big Data (Hadoop based systems), and Cloud native hyper scaler databases (like Snowflake, Databricks).

At my new firm I hear my CEO say “we need AI/Agentic ...

Last call for the "Amiga" Lifetime Subscriber Wall. It's almost full!

Holy smokes, that was fast.

The 6th Lunduke Journal Lifetime Subscriber Wall (aka the “Amiga OS 3.1” Wall) was introduced… what… a week ago?

I kid you not, the darn thing is already almost full! I was wildly unprepared for how popular this would be!

There’s enough space left for maybe 5 or 6 more names. Tops. Then I’ve gotta declare “Wall 6 (Amiga) is Full” and start Wall Number 7!

Here’s what all of the Lifetime Subscriber Walls look like (each shown at the end of every Lunduke Journal video):

 

If you want to get onto the Lifetime Subscriber Wall (and have any chance of making it onto the Amiga Wall before it’s full) here’s what you need to do (and do it quickly):

  1. Grab a Lifetime Subscription to The Lunduke Journal (if you don’t already have one).

    1. A Lifetime Sub includes all the standard perks (plus a few) and can be picked up via Locals, Substack, or Bitcoin (whichever you prefer).

  2. Email “bryan at lunduke.com” and let me know how you would like your name displayed (“Joe A.”, “Joseph Arnold”, “JoeyPants”, “SirJJMcManly”, etc.)

It’s first come, first served.

If you’ve already emailed me about being added to the wall, your spot is secured.

For the rest of you: Chop chop. At the current rate, I would be very surprised if the “Amiga Wall” wasn’t full by some time this weekend.

“Lifetime Wall 7” will be unveiled after the final name is added to the Amiga Wall. And, yes, it will be a different (awesome) retro computing platform.

As always, a huge thank you to every subscriber to The Lunduke Journal. Absolutely none of this would be possible without your support.

-Lunduke

Read full Article
post photo preview
Amiga Lifetime Wall & March Lunduke Journal Stats!

Hello all of you amazing Lunduke Journal subscribers!

With March now behind us, I wanted to give you crazy kids a quick “behind the scenes” look at the stats for The Lunduke Journal. Because Inside Baseball stuff is fun.

The Amiga Wall!

But before we dive into charts and numbers… behold! The brand new 6th Lifetime Subscriber Wall of Shame Awesomeness! The AmigaOS 3.1 Wall!

 

Every Lifetime Subscriber Wall (which I show at the end of each video) is a real screenshot from a different computing platform. Mostly retro. All awesome.

 

If you’d like to see your name listed on the new AmigaOS 3.1 wall, grab a Lifetime Subscription (if you don’t already have one) and toss me an email. I update the walls about once each week with new names.

The last few Lifetime Walls filled up incredibly quickly. So if the Amiga Wall interests you, I wouldn’t wait too long. Hint, hint.

March 2026 Stats

The big news: Total “views” were way, way up in March.

A fair bit beyond what was anticipated. A hair over 19 million during the month.

 

That’s in total, across all platforms. As usual, the audio podcast and X lead the way in terms of total views/listens for shows (by quite a lot).

Interestingly, we saw significant “views” growth on even the smallest platforms in March (Facebook and TikTok).

Free subscribers also took a major jump in March, with the largest one month gains ever (I’m pretty sure, certainly the largest this year or last). Up 7,623 over the month before.

 

Again, new subscribers grew across the board. The biggest gains were seen on X, but all platforms saw a significant bump.

Hard to complain about that!

The top 3 shows for March were all focused on the Age Verification laws:

While those were the top 3… it’s worth noting that the top 10 (and, really, the top 15 or so) shows for the month were all incredibly close in terms of viewership numbers.

As always, a huge thank you to all of The Lunduke Journal subscribers. You make all of this possible.

-Lunduke

Read full Article
Lifetime Wall Number 6, Plus How to Access MP4s & Forum

A few quick reminders for all of you amazing Lunduke Journal subscribers:

First: If you have any kind of payed subscription (Monthly, Yearly, or Lifetime) there are a bunch of cool perks available to you. MP4 Downloads, PDF eBooks, and access to the Lunduke Journal Forum. All the details on how to gain access to everything is right here.

Enjoy.

Second: At the end of this next week I’ll be unveiling “Lifetime Subscriber Wall of Shame” number Six at the end of all new Lunduke Journal videos.

 

At that same time I will be updating and permanently locking down Walls 1 through 5.

If you are already a Lifetime Subscriber, and would like to be added to the new Wall number 6 (or to one of the couple remaining spots on Walls 4 and 5), email me (bryan at lunduke.com) with how you would like your name to be displayed (full name, first name only, nick name… any way you like).

  1. CRT Linux Pico Wall: Full

  2. DOS Word Wall: Full

  3. Win 3.11 Notepad Wall: Full

  4. MacOS 9 Wall: 2 Spots Left

  5. PalmOS Wall: 1 Spot Left

  6. Mystery Wall: Open

Those final spots on the MacOS and PalmOS Walls are first come first served. The first people to request those spots get them.

Everyone else will roll over into Wall 6. Which is a secret, retro computer platform. You’ll dig it.

If you have already contacted me regarding being added to one of these walls (or changing the way your name is displayed), I’ve already got you on the list for the changes later this next week.

If you don’t already have a Lifetime Subscription, grab one and get yourself on the wall.

It’s pretty sweet.

-Lunduke

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals