<br><br><div class="gmail_quote">On Wed, Jun 8, 2011 at 4:10 PM, Jeremy MountainJohnson <span dir="ltr"><<a href="mailto:jeremy.mountainjohnson@gmail.com">jeremy.mountainjohnson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Although this has been fixed, another good one would be:<br>
<br>
killall -r firefox<br>
<br>
The -r signifies a regular expression, so all processes with firefox<br>
are killed. Perhaps -9 does the same thing, I haven't tried that<br>
before.<br></blockquote><div><br>By default, the kill command sends the TERM signal to a process. This gives the process to gracefully shut itself down. It's possible this will not succeed if a process has blocked (masked) signals for some reason (such as being in a critical section). In such cases, the KILL signal (9) may be sent instead. The KILL signal cannot be blocked. Using kill -9 can create zombies, if my memory serves correctly. <br>
<br>Oh, and 'kill -<number>' sends the signal corresponding to that number. The following commands are the same. <br><br><font face="courier new,monospace">kill <pid> <br>kill -15 <pid> <br></font><br>
<span style="font-family: courier new,monospace;"># man kill</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><...></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SIGNALS</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> The signals listed below may be available for use with kill. When</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> known constant, numbers and default behavior are shown.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Name Num Action Description</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 0 0 n/a exit code indicates if a signal may be sent</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ALRM 14 exit</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> HUP 1 exit</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> INT 2 exit</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> KILL 9 exit cannot be blocked</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> PIPE 13 exit</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> POLL exit</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> PROF exit</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> TERM 15 exit</span><br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
The original OP screen-shots gave me a good laugh- it's always funny<br>
to see Windows viruses attempting to run in Linux =)<br></blockquote><div><br>Reminds me of the time a script kiddy owned my PPC Mac OS X machine and immediately notified me of his success by installing an x86 root kit, which of course rendered the machine unusable for the both of us. <br>
<br>-Rob<br> <br></div></div>