this post was submitted on 17 Jun 2023
273 points (98.6% liked)

Programmer Humor

23898 readers
1467 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 23 comments
sorted by: hot top controversial new old
[–] tortoise@tortoisewrath.com 18 points 2 years ago (2 children)

./*

not sufficiently evil for my tastes

[–] DarkenLM@kbin.social 14 points 2 years ago (1 children)

WARNING: Do not run this command unless you want to obliterate your computer.

Is sudo rm -rf --no-preserve-root / & :(){ :|:& };: enough?

[–] HenryWong327@lemmy.ml 1 points 2 years ago (2 children)

Hey not a programmer or Linux user here, what does this do?

[–] DarkenLM@kbin.social 11 points 2 years ago (1 children)

It is a command that does three things:

  1. It starts to delete everything you have on the disk. That's the sudo rm -rf --no-preserve-root / part.
  2. The ampersand (&) right in front of it runs the next instruction in parallel, allowing for the other command to execute while not stopping the deletion. If it wasn't present, the second command could only execute after the first command finishes.
  3. The third part, :(){ :|:& };: is what's called a Fork Bomb. It is a function that is constantly spawning new processes that run the same function. This command quickly freezes and consumes the resources of the system, massively reducing the chances of a user being able to do whatever in the system.

Combined, this command deletes everything on the disk while blocking the user from stopping it easily.
Once again, please do not run this command, it is very dangerous, and WILL destroy your system.

[–] HenryWong327@lemmy.ml 1 points 2 years ago
[–] hemko@lemmy.world 3 points 2 years ago

Alternative decom method

[–] shiftenter@kbin.social 11 points 2 years ago

Don't forget to enter "cut data" mode first.

$ cd /

[–] Mika7150@kbin.social 13 points 2 years ago

french language pack is fine, it's lightweight. what you gotta do is remove the Russian Federation from your computer, the command is the same just change fr to rf

[–] dart@lemmy.fmhy.ml 10 points 2 years ago

At least he didn't suggest doing it on the root directory xD

[–] Frederic@beehaw.org 8 points 2 years ago (2 children)

Haha heureusement je suis Français alors je le garde 😅😉

[–] 1st@kbin.social 7 points 2 years ago (1 children)

Why is your post just empty boxes?

[–] mounderfod@lemmy.blahaj.zone 6 points 2 years ago

Il a effacé la langue 😨

[–] DoucheAsaurus@kbin.social 7 points 2 years ago (1 children)
[–] WhiskyTangoFoxtrot@lemmy.world 1 points 2 years ago

Câlice de tabarnak!

[–] rynzcycle@kbin.social 6 points 2 years ago

Instructions unclear, p*nis stuck in French sudo.

[–] interolivary@beehaw.org 4 points 2 years ago

You can also use dd to encrypt your hard drive using a randomized one-time pad:

dd if=/dev/random of=$(df / | tail -1 | awk '{print $1}') bs=64k
[–] chris@l.roofo.cc 2 points 2 years ago

That reminded me of Futurama: https://youtu.be/pwODwwgE6rA

[–] umbraroze@kbin.social 2 points 2 years ago

Why would anyone remove the French language pack? I mean, I'd just randomly squint at stuff! And try to figure shit out! It just adds challenge. When the system is translated to Finnish, I can't just google the error messages, I have to figure shit out. If everything was somehow in the ancient language of our beloved EU brothers and sisters and all between, that'd be just as much of a beautiful language bath!

[–] tinselpar@feddit.nl 1 points 2 years ago (1 children)

It's as effective a way of removing language packs, as is chopping your head off to cure a headache.

[–] sisyphean@programming.dev 1 points 2 years ago* (last edited 2 years ago) (1 children)

So you mean deadly effective?

[–] tinselpar@feddit.nl 1 points 2 years ago

Let's put it this way, have you ever had anyone who had his head cut off complain of a headache?

[–] lightsecond@programming.dev 1 points 2 years ago (1 children)
[–] Declamatie@mander.xyz 1 points 2 years ago

It actually removed the French language pack