this post was submitted on 10 Aug 2023
41 points (93.6% liked)

Programmer Humor

19311 readers
232 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 1 year ago
MODERATORS
 
top 30 comments
sorted by: hot top controversial new old
[–] deaf_fish@lemm.ee 10 points 1 year ago (3 children)

Don't run this command unless you want to delete all the files on your system and break Linux on your system.

[–] dept@lemmy.sdf.org 13 points 1 year ago (3 children)

is linux that dependant on French? wow

[–] Ozzy@lemmy.ml 2 points 1 year ago (1 children)

Did you know? Linus Torvolds is actually the consort child of two french people! That's why you have to use the french flag when removing folders, it's an ode to his upbringing

[–] Morphit@feddit.uk 1 points 1 year ago

Stallman is fuming rn

[–] CurlyChopz@lemmy.world 1 points 1 year ago

It's actually called "Le Nux" but it had to be changed so it wasn't too controversial for the rest of the world

[–] senkora@lemmy.zip 4 points 1 year ago (1 children)

So what you’re saying is, it is true that I will no longer have French installed.

[–] MetalJewSolid@sopuli.xyz 1 points 1 year ago

A risk worth taking

[–] MrSnowy@lemmy.ml -1 points 1 year ago

Find that out the hard way?

Do you just hate the french that much? Because I do.

[–] nefarious@kbin.social 3 points 1 year ago (3 children)

Careful, you have to also add --no-preserve-root to make sure you get all of it out. If you leave the roots, it'll just grow back later!

(But seriously, don't actually do this unless you're prepared to lose data and potentially even brick your computer. Don't even try it on a VM or a computer you're planning to wipe anyway, because if something is mounted that you don't expect, you'll wipe that too. On older Linux kernels, EFI variables were mounted as writable, so running rm -rf / could actually brick your computer. This shouldn't still be the case, but I wouldn't test it, myself.)

Careful, you have to also add --no-preserve-root to make sure you get all of it out. If you leave the roots, it’ll just grow back later!

Oh my god I effin guffawed, thanks for that

[–] Barbarian@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago) (1 children)

Fun fact, rm -rf /* does not need --no-preserve-root. It will happily start as technically, according to the preserve root check, /* is not root as the target is not /

[–] koper@feddit.nl 3 points 1 year ago* (last edited 1 year ago)

It's slightly different. Your shell will see the /* and replace it with all the directories under /, e.g. /bin /dev /etc /home etc. So the actual command that runs is rm -rf /bin /dev /etc /home etc.

[–] Infernal_pizza@lemmy.world 1 points 1 year ago

I ran it in Hyper-V once to see what happens and it deletes all the boot entries from the VM firmware (including pxe boot and the dvd drive)

[–] vsis@feddit.cl 1 points 1 year ago* (last edited 1 year ago) (1 children)

Pro tip: Run :(){ :|:& };: to activate the developer mode on Linux.

[–] BlueMagma@sh.itjust.works 0 points 1 year ago (1 children)

I have no idea what this does, I will not try it to find out

[–] isVeryLoud@lemmy.ca 1 points 1 year ago
[–] ryannathans@lemmy.world 1 points 1 year ago
  1. Don't run any command you don't understand
[–] Puppy@kbin.social -1 points 1 year ago (1 children)
[–] snooggums@kbin.social 0 points 1 year ago (1 children)

It is the most efficient way to save disk space and processing time. You won't even know if your system is running!

[–] Puppy@kbin.social 0 points 1 year ago (1 children)
[–] Meowoem@sh.itjust.works -4 points 1 year ago

Barely a joke. It's a weird elitist bullying gatekeeping thing, spreading dangerous misinformation to try and randomly hurt other people is a thing awful people find funny - like those jokes where they try to get kids and educationally disadvantaged people to mix bleachs and inhail the deadly gas, it's basically just cruel psychopaths who enjoy hurting others

[–] Meowoem@sh.itjust.works -2 points 1 year ago (3 children)

I get these are jokes but I really don't find anything funny about it, it becomes a meme and then people start getting more creative and pushing it more and being more covert and people come up with other little japes then new Linux users get their shit destroyed and maybe important info gets lost or precious memories so they say Linux is a piece of shit and go back to windows.

It's not even funny to start with so when it inevitably inspires people to be assholes and bullies that's all we've achieved.

[–] littlecolt@lemm.ee 5 points 1 year ago (2 children)

It's the new "delete system32 to get better performance"

[–] Album@lemmy.ca 2 points 1 year ago

Lol rm -rf as a joke isn't new anyway

except you probably delete more than system files which could be easily restored from an install disk

[–] newline@feddit.nl 1 points 1 year ago (1 children)

I totally agree. We should be more open and welcoming to new users. Imagine some new people on the steam deck being curious and diving into Linux and running into this. Undoubtedly, we'd lose at least a few users that brick their machines.

I get that this humor fits and entertains the technically inclined of us, but if we truly want more widespread use of Linux, shouldn't we open our arms to less technical users as well? Besides, even for the more technical of us, this joke is so old and run down 🙃

[–] dot20@lemmy.world 1 points 1 year ago

Eh, this is a classic joke by now. There's those jokes on the Windows side too (like the 'delete system32' one).

[–] Phoenix@programming.dev 0 points 1 year ago* (last edited 1 year ago) (1 children)

Yes, but also I would hope that if you have the autonomy to install linux you also have the autonomy to look up an unknown command before running it with superuser privileges.

[–] Crozekiel@lemmy.zip 3 points 1 year ago

That's making an assumption that a brand new Linux user knows they are running the command with superuser privileges.

Half the time you websearch a problem you are having in Linux you will find someone telling you to fix it by running a command that starts with sudo without explaining what any part of the command does. New people probably regularly run those commands without finding out what it does and it probably works (or at least does no harm) a good portion of the time because most people aren't dicks. So then you've got new people trusting that form of advice.

It's hard to blame them, they are new to the system and very few experienced users are going out of their way to explain the basics to new users.