I know the answer, of course.
"kill -9 -1"
I can also tell you... but that would be no fun for everyone else.
I don't know what -1 does, but I could take a good guess :P
Quote from: Ergot on August 18, 2005, 08:13:09 PM
I don't know what -1 does, but I could take a good guess :P
What would that guess be?
It closes all processes owned by the user with a process ID greater than 1. I had to Google the -9, only to find out that it was exactly what I thought it was.
It closes all processes owned by the current user. The -9 is the SIGKILL signal.
Good job!
And can you guess the effect of running it on my laptop before doing "man kill" to find out what -1 does?
Instant lock-up for the current user! Woo! :)
Next, this one's tougher, who can explain to me what this does when run in Bash?
:-(){ :|:& };:
It can't be good cause none of those are smily faces. :( :|
Quote from: OG Trust on August 18, 2005, 09:21:00 PM
It can't be good cause none of those are smily faces. :( :|
haha
And by the way, _please_ don't try that out on my server if you have access :P
Alright, thanks for the warning!
ergot@darkside:~$ :-(){ :|:& };:
shit :/
while (1) {
fork();
}
Can I do it yet? =)
Quote from: Joex86] link=topic=2367.msg22263#msg22263 date=1124434326]
while (1) {
fork();
}
Can I do it yet? =)
That's basically what it does, but how?
Since iago gets to give all the puzzle's I will throw some in aswell but iago you can't answer.
I will start these easy and get harder....
ps -ax|more
Quote
Code:
while (1) {
fork();
}
Can I do it yet? =)
That's basically what it does, but how?
He won't know unless he can find the log of me explaining it to him last night ;P
Quote from: mynameistmp on August 19, 2005, 03:22:24 PM
Quote
Code:
while (1) {
fork();
}
Can I do it yet? =)
That's basically what it does, but how?
He won't know unless he can find the log of me explaining it to him last night ;P
Haha, I didn't think he'd figure that out himself :)
To quote somebody else:
QuoteThe ':()' defines a fuction ':' with a fuction body of
{
: | : &
}
As you can see this is a recursive call as the fuction ':' is called,
it's output passed via a pipe as input to the fuction ':' and this
whole command is run in the background '&' .
The last ':' in the string (after the ';') calls the fuction and therefore
starts it all of.
(Krazed edit: Disabled smileys.)