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
Lunduke's Week in Tech - Aug 23, 2025

USA Owns Intel & Microsoft's Intifada Problem (Plus: UK Says Email Causes Drought)

The Article:
https://lunduke.substack.com/p/lundukes-week-in-tech-aug-23-2025

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

00:39:03
Microsoft "Intifada" Shut Down After 4 Hours

Note: This video is being made free for all due to the nature of the news story. While all Audio Podcasts and Articles from The Lunduke Journal are always free, many videos are exclusive for subscribers. More details, and links, at Lunduke.com.

After the "Worker Intifada" declared they would occupy Microsoft Campus "as long as it takes" for Microsoft to cut ties with "the murderous Zionists", the event barely lasted past lunch.

The Article:
https://lunduke.substack.com/p/worker-intifada-occupies-microsoft

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

00:34:11
Lunduke's Week in Tech - August 15th, 2025

Linux Kernel Chaos & The Non-Woke Software List

The Article: https://lunduke.substack.com/p/lundukes-week-in-tech-aug-15-2026

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

00:45:49
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

#DailyWire Is Reading Lunduke Journal

It's the only explanation, eh @lunduke?

post photo preview

[Poll] Year of Linux vs "Big OS" Neo-Feudal Rule... What Kind of Future?

😾 Disclosure: Watching Windows Update Download/Install for 90 minutes got me Triggered about the state of "Non-Commercial-Computing" (see WEF on "You Will Own Nothing and BE HAPPY" ). Article Links at the bottom.... Not counting Microsoft's "Activists for Intifada." 🙈 "No Comment" is my vote.

In simple terms, "Server Linux" will be AWESOME (see Web Servers + Super-Computers). However, "Home Users" who want a Reliable Desktop Environment on Linux OS - Forget It!!!

In all fairness though, Windows 11 User will be screwed.... Techno-Feudalism only favors the Powerful (Corporate) and the "Well-Connected" (Political). You won't even be able to boot your computer unless your Internet-Login-ID has been validated (typically by SmartPhone "fingerprint" PKI registered with a certificate authority).

We could get LUCKY! ... 🌈 💾 🦄 DOGE OS ("Free" Release-Candidate-1) created in 4 ...

Framework is hardcore championing Omarchy despite the woke crowd complaining about the distro's creator and their political leanings. (DHH is an awesome person, and I find it hard to believe anyone could have a problem with him.)

In other news, I use Omarchy, btw.

post photo preview
post photo preview
Omarchy 2.0 - The Arch-Based, Hyprland, Non-Woke Distro
The 2.0 release of the unabashedly nerdy, developer focused, & DEI-free Linux distribution is here. And people are flocking to it.

Omarchy, an Arch-based Linux distribution which self-describes as “An opinionated Arch + Hyprland Setup”, has just published their 2.0 release.

 

Omarchy was started by David Heinemeier Hansson (DHH), the creator of Ruby on Rails, as a command-line and developer focused (and unabashedly nerdy) configuration of Arch Linux.

In the short time since it began (back in June), Omarchy has captured a massive amount of interest and has grown to become a full-fledged distribution in its own right.

Omarchy 2.0 boasts a new ISO installation method, AUR-free installation, a Chrome micro-fork with live theme switching, a Starship prompt, a new icon, and 400 other changes (from 45 contributors).

 

According to DHH, the Omarchy Discord now has over 6,000 members with the website having received over 100,000 unique visitors in the last month.

Not too shabby for a Linux distribution that is only 2 months old.

Speaking of Discord, if the Omarchy installation fails, it displays a QR code with an invite link to the Omarchy support channel. I thought that was a rather nice touch.

 

Worth noting that Omarchy — and the Hyprland window manager, which Omarchy uses by default — both were added to “Lunduke’s Non-Woke Software List” this month.

 

Omarchy is yet another Open Source project which has steered clear of Woke & DEI politics… and has seen tremendous success and adoption. We have seen that same scenario play out repeatedly now, with projects like OpenMandriva, XLibre, Hyprland, & Brave.

Avoid DEI. Experience a flood of users, contributors, and excitement.

A pattern is emerging. Hopefully more projects learn this important lesson.


The Lunduke Journal is the last bastion of truly independent Tech Journalism. Ad Free, Big Tech Free, Non-Woke, & Audience Supported.

Read full Article
post photo preview
Microsoft Adds Copilot AI to Excel
Microsoft warns users not to use Copilot in Excel spreadsheets “for any task requiring accuracy or reproducibility”.

Buckle up, Buttercup. Because you’re about to hear about one of the stupidest features ever added to a piece of software.

Microsoft has added their Copilot AI to Excel — so you can have an AI chatbot embedded into cells of your spreadsheet.

 

In case you were wondering just how bad of an idea this is, Microsoft is explicitly warning people that “Copilot uses AI and can give incorrect responses”.

In fact, Microsoft says you should NOT (they put “NOT” in all caps, so you know they mean it) use Copilot in Excel “for any task requiring accuracy or reproducibility” or for “tasks with legal, regulatory or compliance implications”.

 

I mean, really. Who uses spreadsheets for silly, math-y things like “accuracy” or “reproducibility”?

Another thing to keep in mind: Using Copilot AI within Excel means sending your spreadsheet data to Microsoft for analysis. Worth thinking about if you are using Excel for something like a “business”, or “government”, or “personal financial data”.

 

If that isn’t enough to deter you, and if you really hate that whole “accuracy” thing — and have a Microsoft 365 Copilot license — you can grab the Windows or Mac versions of Office in the Microsoft Beta Channel.


The Lunduke Journal is the last bastion of truly independent Tech Journalism. Ad Free, Big Tech Free, Non-Woke, & Audience Supported.

Read full Article
post photo preview
Ladybird Gains Google Sheets Support
Ladybird dev says: “Been told many times over the years that ‘you’ll never get complex stuff like Google Docs running’ lmao.”

The Ladybird web browser can now handle Google Sheets.

 

Watching as Ladybird rapidly gains support for increasingly complex websites (and web “apps”) is a truly marvelous thing.

As the lead developer of Ladybird says, it’s not perfect. But increasingly usable.

I mean, heck. Look at that. That’s Google Sheets. Running in a web browser that is not based on Firefox or Chrome.

 

The real question, for many of us, is “how long until we can use Ladybird as our daily web browser?”

According to the team, “Summer of 2026” is their target for the first official “Alpha” release. And my guess is… they’re probably about right. But, based on the rapid progress, I’d say it’s also reasonable to assume that super-duper-early adopters can probably start daily test driving Ladybird a bit sooner than that.

It seems like we are seeing significant new functionality, and site support, almost every day. Here’s Cal.com running in Ladybird.

 

And here one of the developers is showing off gamepad support. Which. Awesome.

 

Let this be your regular reminder: Anybody who is telling you “you can’t build [insert project here], it’s too hard and requires a massive team”… is full of doggy doo-doo.

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