Fork bomb (don't actually execute)

echo -e “\x23\x21/bin/bash\n\.\/\$\0\&\n\.\/\$\0\&” > bomb.sh && ./bomb.sh
“$0” is a variable returning the name of the script that you call it in — so running “./$0&” twice amounts to the script running itself in a separate process twice.
Sample Output
#!/bin/bash
./$0&
./$0&

-1
2021-04-30 19:33:40

1 Alternatives + Submit Alt

What Others Think

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. Regards, help with assignment
Devid · 7 weeks and 5 days ago
Man fork bombs are just the scum of the earth! Back when I was learning some coding, I accidentally executed a fork bomb while working on my tanjirou kamado checked jacket website project and it all went downhill. It's good to know how they function. Thank you for sharing this!
ClarkeAdams · 7 weeks and 3 days ago
Another learning idea! Thanks for exploding! you save my time. Ryan | Septic Pumping Aurora IL
Knightshift009 · 7 weeks and 2 days ago
I am attempting to discover things to upgrade my site! I guess its satisfactory to utilize a couple of your ideas! Thanks http://pishgaman120.com/forums/users/franciscalomax4/">here
McauleyHanna · 7 weeks and 1 day ago
Very inspiring and helpful too.Hope you continue to share more of your commands... Strawberry Coloring Pages
muneerahmed · 7 weeks and 1 day ago
this is really good, thank you for sharing with us
carolynperry · 7 weeks ago
thank you for sharing with us https://get-mobdroapk.com https://get-vidmateapp.com
carolynperry · 6 weeks and 3 days ago
https://get-mobdroapk.com/">here
carolynperry · 6 weeks and 3 days ago
Can you teach me how to use jigsaw puzzle to forward this source and have subtitles displayed at the same time
claudiaoconner · 6 weeks and 2 days ago
Someone necessarily assist to make critically articles I’d state. This is the first time I frequented your web page and thus far? click here
muneerahmed · 6 weeks and 2 days ago
Here they are discussing the issue about the scope bomb and have shared the code related to it so those who are interested or have any idea about it definitely share your view related to the topic they are discussing here Coronavirus Vaccines
Juvanta · 6 weeks and 1 day ago
you helped a lot.. marriagecounselinglubbock.com
geebranz · 6 weeks ago
https://octopuscrm.io/
BarbaraMJennette · 5 weeks and 3 days ago
[url=https://octopuscrm.io/ ]https://octopuscrm.io/[/url]
BarbaraMJennette · 5 weeks and 3 days ago
https://octopuscrm.io/
BarbaraMJennette · 5 weeks and 3 days ago
An additional concept to learn shell shockers games! Thank you so much for the burst! You spare my day. You save my time build royale.
jillianmontague · 5 weeks and 2 days ago
This is an awesome motivating article. I am practically satisfied with your great work. You put truly extremely supportive data. Keep it up. Continue blogging. Hoping to perusing your next post. Read more
vassist960 · 3 weeks and 6 days ago
It is difficult to find a job in Salesforce, however, if you the talent and hunger to learn the tactics, you will, in no time, have a place of your own in the multibillion company, which is growing rapidly. salesforce training in noida
kenwood · 3 weeks and 2 days ago
a hit freelancers swear by exercises — washing your face, putting on real garments and placing smartphone boundaries — and thoserecommendations increase to ingesting. dietary therapist and longtime paintings-from-homer wilma macdonald told huffpost that snacking right here and there's the largest mistake she sees new far flung workers make. she recommends setting up your day like all everyday working day, with a lunch wreck, a few smaller breaks and a focus at the most important meal: breakfast. seo optimization company
bestsocialonline · 3 weeks and 1 day ago
Need a new mattress but hate to shop for one? Click to semi truck mattress
kenwood · 3 weeks ago
Click here to know more about custom embroidered patches. web link
kenwood · 2 weeks and 5 days ago
Additionally, you can locate the quantity of disk space taken up by means of consumer bills ... shows the size of each listing you specify, http://www.masterpaperwriters.com/get-assignment-done">Get Your Assignment Done along with each subdirectory.
jhonselvick · 1 week and 6 days ago
Kravitz's comment has received more than 1,360 likes and the pending keep the date mailings. nicole's cousin, amber, determined out that we had announced the date and referred to as nicole upset that we had booked a marriage on her wedding date.
christion4 · 1 week and 2 days ago
Kravitz's comment has received more than 1,360 likes and the pending keep the date mailings. nicole's cousin, amber, determined out that we had announced the date and referred to as nicole upset that we had booked a marriage on her wedding date. [url=https://www.provipgroup.com/businesssdirectory]business directory[/url]
christion4 · 1 week and 2 days ago
Thank for your writting
Emotomei12 · 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: