This is made extra humorous thanks to the escape that my Lemmy client adds to the post title. & to &
while this doesn’t work on many modern systems due to a variety of changes since this was widely disseminated, I still like this one and the batch file method of %0|%0, as they are examples of elegant, efficient code on their respective default command line interpreters.
Stop doxxing the cat
fork bomb can get the fork over it
Hey, now that’s funny. My cat is named
sudo ulimit - u 31677
I have a hunch the two wouldn’t get along.
Better cat version:
🐈(){🐈|🐈&}
you are missing ;🐈 at the end
I use fish. This doesn’t work.
Probably for the best, cats eat fish
Fork bomb is actually a pretty fantastic cat name
ELI5?
Replace “:” with “a” you get
a() a ; a
Reformatting
a() {
a | a &
};
a
So it creates a function, a, which what it does is it calls itself and pipes its output to itself (the a | a). The ampersand means that this will run entirely in the background. Then, to initiate things, the command calls a (in the last line)
So, there will be exponentially be many recursive calls to a, which will eventually deplete your stack and set your pc on fire
Use `` to disable text formatting,
it's intended for code but it can be used for anything where formatting shouldn't be considered
This is why I should not be allowed to use Linux
most linux distros from android to alpine can be and often are configured to limit the amount of forks a user can spawn
on windows a forkbomb is literally %0|%0 iirc
Please I do not need this information oh god what do I do now?
find your nearest school pc with like 8g ram
How does that work?
%0 means your current command iirc so it just reexecutes itself piping its own output to the new instances
I always wonder, does it really need the pipe? Why not just :&:& ?
It’s a fork bomb. It exponentially forks processes in the background in an attempt to consume all CPU cycles.
Just a sentence, please kind sir, not a video?
Fork bombs are things that infinitely spawn new forks, until the system crashes. Its an infinite ‘if true, spawn new instance’ loop that only stops when the system gets a hard reset.
Is a fork bomb, it starts a process that starts two more processes, which each start two more processes, which each start two more processes, which each start two more processes…
And eventually the computer locks up plus it’s hard to kill since the PIDs change constantly.
Maybe he thought the topic was interesting and wanted to share more details with us? I appreciate the video.
Its creating a function named : that spawns two copies of : then calls that function to start the duplicating code or forks. For that, its called a fork bomb.
It also backgrounds the process with &
https://en.wikipedia.org/wiki/Fork_bomb
Self-replicating program, malicious
🍴💣
Fork and knife explosive?! 😱
Silverware incindiary!?! ☠️
🍴💣 🍴💣
🍴💣🍴💣🍴💣🍴💣
🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣🍴💣
alias cat=":(){:|:&};:
, good kitty*
alias cat=":(){:|:&};:
Tell your instance to update to 0.19.
&ersand;
Then how will i
cat file | grep ...
?Useless use of 🐈
(which cat) file | grep meow
grep file ...
I tried but got an error:
:& : Command not found
Is it expected ? Did I type something wrong ? I’m confused…
Generally, don’t just copy paste things you find online.
Something else to be aware of and stay away from is “rm -rf /” which will delete everything on your computer, including your operating system. Naturally this will crash the computer and you will not be able to start it again.
(You should be able to boot from a usb stick though.)
Always remove the french language pack
Always read mails really fast
/usr/share/language/pack/français: Permission refusée
@BaardFigur My dude, I understand and celebrate the memes, but please understand that linux first time using is a sensitve period in people’s lives and the reach of modern social media means there is some x% of users who will have a bad time, because they saw that meme and took it seriously.
It’s a statistical guarantee.
sudo rm -rf / --no-preserve-root
and your password to delete the french language pack :3
I just tried your command and it yields a lot of
Permission denied
. Is it expected or your command is incomplete ?@wgs I really hope you’re trolling. Don’t do that.
Yes, this is expected and means the regular safeties are working. Don’t turn those off please.
Nevermind I figured it out, you gotta use
sudo
for it to work properly !Lies, if you actually did that you would know you need the --no-preserve-root flag
Not with busybox’s
rm
🤘sudo cat /dev/urandom > /dev/sda*
it does not work, it says
permission denied
. Is there anything I should do ?
It’s a fork bomb. Specifically it’s a piece of code that recursively calls itself and then it calls itself to run the code.
Thank goodness it did not work, but please do not actually run code like this!! Do your best to figure out what the code is doing before you attempt to run it!
Nevermind I figured what went wrong, I mistyped it initially ! It would have been much easier to copy paste it if it wasn’t a picture…
Fun fact, the command displays a nice cat picture in ASCII :)
Edit: screenshot
It means you have a virus
I know a guy that can fix it if you send me your ssh keys
Both of them?
/etc/security/limits.conf
exists …You should try typing his sister’s name in first,
sudo sh -c “>/etc/security/limits.conf”
Then remove that for appropriate animal care! Do you want the cat to starve?
Don’t worry, the limit is set large enough. No cat will starve on THIS machine.
what the fork