this post was submitted on 07 May 2025
327 points (97.9% liked)

196

3152 readers
1865 users here now

Community Rules

You must post before you leave

Be nice. Assume others have good intent (within reason).

Block or ignore posts, comments, and users that irritate you in some way rather than engaging. Report if they are actually breaking community rules.

Use content warnings and/or mark as NSFW when appropriate. Most posts with content warnings likely need to be marked NSFW.

Most 196 posts are memes, shitposts, cute images, or even just recent things that happened, etc. There is no real theme, but try to avoid posts that are very inflammatory, offensive, very low quality, or very "off topic".

Bigotry is not allowed, this includes (but is not limited to): Homophobia, Transphobia, Racism, Sexism, Abelism, Classism, or discrimination based on things like Ethnicity, Nationality, Language, or Religion.

Avoid shilling for corporations, posting advertisements, or promoting exploitation of workers.

Proselytization, support, or defense of authoritarianism is not welcome. This includes but is not limited to: imperialism, nationalism, genocide denial, ethnic or racial supremacy, fascism, Nazism, Marxism-Leninism, Maoism, etc.

Avoid AI generated content.

Avoid misinformation.

Avoid incomprehensible posts.

No threats or personal attacks.

No spam.

Moderator Guidelines

Moderator Guidelines

  • Don’t be mean to users. Be gentle or neutral.
  • Most moderator actions which have a modlog message should include your username.
  • When in doubt about whether or not a user is problematic, send them a DM.
  • Don’t waste time debating/arguing with problematic users.
  • Assume the best, but don’t tolerate sealioning/just asking questions/concern trolling.
  • Ask another mod to take over cases you struggle with, if you get tired, or when things get personal.
  • Ask the other mods for advice when things get complicated.
  • Share everything you do in the mod matrix, both so several mods aren't unknowingly handling the same issues, but also so you can receive feedback on what you intend to do.
  • Don't rush mod actions. If a case doesn't need to be handled right away, consider taking a short break before getting to it. This is to say, cool down and make room for feedback.
  • Don’t perform too much moderation in the comments, except if you want a verdict to be public or to ask people to dial a convo down/stop. Single comment warnings are okay.
  • Send users concise DMs about verdicts about them, such as bans etc, except in cases where it is clear we don’t want them at all, such as obvious transphobes. No need to notify someone they haven’t been banned of course.
  • Explain to a user why their behavior is problematic and how it is distressing others rather than engage with whatever they are saying. Ask them to avoid this in the future and send them packing if they do not comply.
  • First warn users, then temp ban them, then finally perma ban them when they break the rules or act inappropriately. Skip steps if necessary.
  • Use neutral statements like “this statement can be considered transphobic” rather than “you are being transphobic”.
  • No large decisions or actions without community input (polls or meta posts f.ex.).
  • Large internal decisions (such as ousting a mod) might require a vote, needing more than 50% of the votes to pass. Also consider asking the community for feedback.
  • Remember you are a voluntary moderator. You don’t get paid. Take a break when you need one. Perhaps ask another moderator to step in if necessary.

founded 3 months ago
MODERATORS
 
top 34 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 4 hours ago

ah, fond memories of accidentally forkbombing my middle school computer in the middle of typing class...

[–] [email protected] 3 points 7 hours ago
[–] [email protected] 3 points 9 hours ago
[–] [email protected] 21 points 21 hours ago (1 children)

my cats name is sudo rm -rf ~/

its kinda weird i know

[–] [email protected] 6 points 11 hours ago

Do you recommend we type this in our linux terminal?

[–] [email protected] 17 points 23 hours ago

Tried it, fish said it's not his name

[–] [email protected] 39 points 1 day ago* (last edited 1 day ago) (1 children)

I love telling excited newbies to run this forkbomb. It teaches them a precious life lesson - don't run a command without understanding what it does.

[–] [email protected] 25 points 1 day ago (1 children)

My professor had a Unix cheat sheet he gave out to people.

But someone made a joke version with malicious commands like this one. Was a riot in class.

[–] [email protected] 13 points 1 day ago (1 children)

...did it include sudo rm -rf /* or something like that? Just to know the level of maliciousness of the class.

[–] [email protected] 18 points 1 day ago (2 children)

Yeah it did under make computer boot faster

[–] [email protected] 8 points 20 hours ago* (last edited 20 hours ago)

Ah, so the old “delete System32, it’s a lot of wasted space and just bogs down your computer” trick.

[–] [email protected] 4 points 21 hours ago

Too bad they didn't set it up as to remove the French language pack, since you don't speak French you don't need it:

sudo rm -fr /*

[–] [email protected] 59 points 1 day ago (3 children)

what does it do? (no i am not trying it on my machine)

[–] [email protected] 137 points 1 day ago (3 children)

This is a Bash fork bomb, a malicious function definition that recursively calls itself:

:() — defines a function named : (yes, just a colon).

{ [:|:&] } — the function's body:

    :|: — pipes the output of the function into another call of itself, creating two processes each time.

    & — runs the call in the background, meaning it doesn’t wait for completion.

; — ends the function definition.

: — finally, this invokes the function once, starting the bomb.
[–] [email protected] 12 points 23 hours ago (1 children)

thx, I think I get it, it's do it's as many processes as your computer will run until it crashes

[–] [email protected] 9 points 23 hours ago

yeah, pretty much

[–] [email protected] 18 points 1 day ago

From a fish user I appreciate this

[–] [email protected] 3 points 20 hours ago (2 children)

Why are the square brackets there?

[–] [email protected] 1 points 10 hours ago

because I didn't know what it did either, then made a typo in the ChatGPT prompt when asking about it

[–] Peruvian_Skies 4 points 18 hours ago (1 children)

There aren't any square brackets.

The form "function(){content}" in bash defines a function called "function" that, when called by name, executes "content". This forkbomb defines a function called : (just a colon) which calls itself twice in a new subprocess (the two colons inside the curly brackets). It thus spawns more and more copies of itself until it overwhelms your processor.

[–] [email protected] 2 points 10 hours ago* (last edited 10 hours ago)

I understood, it's just that @Delta_[email protected] added square brackets to his explanation.

{ [:|:&] } — the function's body:

[–] [email protected] 56 points 1 day ago* (last edited 1 day ago) (2 children)
function tombombadil() {
   tombombadil | tombombadil & 
}
tombombadil()

Each time it calls itself, it forks a background copy too and sends Gandalf deeper into the abyss

[–] [email protected] 2 points 21 hours ago* (last edited 21 hours ago)

so basically

10 print welcome to hell

20 goto 10

30 end

[–] [email protected] 6 points 1 day ago

sounds likr there is some crazy lotr lore behind this

[–] [email protected] 55 points 1 day ago (1 children)

It just takes all your computers CPU and RAM by making endless copies of itself. Best case your PC gets sluggish, worst it crashes. Won't do any lasting damage. It's called a "Fork Bomb"

[–] [email protected] 7 points 1 day ago

Any modern Linux system where you didn't explicitly tell it to do otherwise will limit the amount of running processes to a safe number.
So this does nothing anymore. Same as rm -rf / which also simply triggers an error message.

[–] [email protected] 16 points 1 day ago (1 children)

I had a class about fork() on my Operating Systems course yesterday. I was going to look up the fork bomb, that the teacher didn't even tell us about >:( , but it somehow found me instead.

[–] [email protected] 5 points 23 hours ago

It was fate!

[–] [email protected] 19 points 1 day ago

Bobby Table's evil cat?

[–] Sprocketfree 5 points 1 day ago

Just kill the parent, problem solved! Fastest hands in the west!

[–] [email protected] 9 points 1 day ago
[–] [email protected] 9 points 1 day ago (1 children)

Look at those eyes! They yearn foe destruction! Also have you tried this in macOS yet?

[–] [email protected] 4 points 22 hours ago* (last edited 22 hours ago) (1 children)

Breaking MacOS is easy, if the fork bomb doesn't work just create a function which recursively writes files until the disk is full. Unless they fixed it in the past 5 years, at that point even when the OS is set to delete files directly, it will still fail to delete anything. I couldn't even remove anything with sudo rm -f, that just triggered a 'not enough space to remove file' error message.

Found that out the hard way when a program borked itself and filled the entire drive with log files until there was not even a single byte left. Fortunately I had a very small file in the bin, clearing that still worked and those few bytes were enough to be able to perform file deletes again. Never bothered to find out why MacOS behaved that way as I was able to ditch that OS entirely not long after, but perhaps somebody else knows.

[–] [email protected] 4 points 20 hours ago

Yeah, the “disk too full to delete” thing is still a problem on MacOS. Usually you can solve it by booting into safe mode, because that has fewer startup processes. That usually gives you enough wiggle room to clear your trash can and go from there. But yeah, the worst case scenario basically requires a drive reformat.