[–] UncleAWhole 0 points 4 points (+4|-0) ago 

my heart still flutters when i see the most beautiful bash command of all

:(){ :|: & };:


[–] TheBuddha [S] 0 points 2 points (+2|-0) ago 

I also have a soft spot for Perl. So, I can relate.


[–] I_Always_Lie 0 points 1 points (+1|-0) ago  (edited ago)

Please splain.

Edit: Was about to type it in to a terminal but decided against it.


[–] UncleAWhole 0 points 1 points (+1|-0) ago  (edited ago)

It's a bash function called a fork bomb, the idea is that it self references and forks each time spawning more and more of it's self. lets rename the function from : to "bomb" to make it more human readable

1: bomb(){
2:    bomb | bomb &
3: };
4: bomb

Line 1: is the creation of the bash function named Bomb originally named ":"

Line 2: the contents/commands for the function Bomb (originally ":"), these commands are a self reference, so it runs it's self and pipes it's output into it's self and then the key to it all "&" forks that command into a new process

Line 3: ending the function

Line 4: running the function for the first time

The idea behind this is each time the function is called it spawns 2 more versions of it's self and compounds so.. 1>2>4>8>16 and so on, this all happens insanely fast and after a short time will overwhelm what ever system the command was run on. now some systems do have fork bomb prevention that will actually stop this command from working, but in most cases it will work. if you do run it, make sure your ready to reboot because it's going to grind your system to a halt.

and remember kids, never run some random code from some AWhole on the net :-)


[–] NeoGoat 0 points 1 points (+1|-0) ago 

Thank you, The!!!!


[–] bernicestockstill 0 points 0 points (+0|-0) ago 

oh yeah, I always have this stupid problem


[–] I_Always_Lie 0 points 0 points (+0|-0) ago 

I wrote some of my c code with the i[A] instead of A[i] just to fuck with anyone that had to read it in the future. Evil indeed.