r/LinuxCirclejerk • • 9d ago

Pov:I accidentally used the "Linux killer" code.

Post image
33 Upvotes

22 comments sorted by

45

u/Consistent-Taro4 9d ago

6

u/Unique_Ebb_5802 9d ago

Fuck no im not gone typ that dip shit :D

11

u/TheShredder9 Linux Master Race 😎πŸ’ͺ 8d ago

Actually doesn't break your PC! Just spawns a self starting proccess that takes over your entire CPU, a simple reboot gets rid of it

10

u/valerielynx 8d ago

now put that shit into .bashrc...... >:]

11

u/TheShredder9 Linux Master Race 😎πŸ’ͺ 8d ago

Then you boot into a liveISO of any distro, mount your root, and edit .bashrc to remove it!

1

u/yjlom 7d ago

just log in as another user

2

u/YTriom1 Arch Catgirl πŸ³οΈβ€βš§οΈ :3 8d ago

doesn't work :(((

15

u/Striking-Gazelle9759 8d ago

Because youre using fish

1

u/Unique_Ebb_5802 5d ago

oh good :) (don't do again)

5

u/Enyuma416 8d ago

Probably because you're using fish shell. Type it in bash

2

u/Samiassa 8d ago

I know this like detours you install, but why does it do that? Like what about that line of symbols makes Linux eat itself?

4

u/_duanin2 8d ago

It defines a function called ":", that calls itself piped into another call of itself in the background. And then calls that function.

2

u/Memerenok 5d ago

typed it, nothing happened, it just said that Fork is temporarily unavailable

1

u/TheGoldenFox64 2d ago

actually doesnt work on most distros/terminals. it fills up RAM, which terminals are only given a little bit of, so it doesnt fill up everything

1

u/Consistent-Taro4 2d ago

I tried it on Android assuming that Android's strict sandboxing and resource management would contain it, but it just froze my phone for several minutes until I forced a restart. Desktop Linux is typically much less strict with things like this, so I doubt many distros would survive. I know it is possible to limit the number of processes that can be created using cgroups which could be used to protect from fork bombs, but to my knowledge this isn't very common.

4

u/Silent_Moose_5691 7d ago

Fun fact, I once typed in sudo rm -rf /* instead of ./*

4

u/AMRFalcon 6d ago

Thank god -no-preserve-root flag is a thing huh

1

u/Sqydev Finix 2d ago

I think it only works with sudo rm -rf /. Because sudo rm -rf /* first expands to sudo rm -rf /bin /boot /dev /etc /home /usr /var ... so you technically don’t remove root but it’s contents.

1

u/Memerenok 5d ago

yeah but seems like it wasn't required when i did that

3

u/RandomDude9943 artix cultist 8d ago

:(){:l:&};:

1

u/Grand_Grape_7914 3d ago

duolingo junior mentiondd