This command is so dangerous if you work with other OS's... like Unixware,
AIX, Solaris etc....
killall does that!! Kills all.
...including the process you wanted to kill in the first place :)
This reminds me of answers to an editor quiz, assume vi without loss of
generality.
For each question, assume you begin at position 1 of line 1
Q1: How do you delete line 10 of the file?
Answer: dG
Q2: How do you delete line 15 through to line 20 of the file?
Answer: dG
...and so it went on.
>From the linux killall manpage KNOWN BUGS section:
Be warned that typing killall name may not have the
desired effect on non-Linux systems, especially when done
by a privileged user.
for large values of 'may not'!
The choice of the name 'killall' for the Linux version was unfortunate.
Maybe 'killbyname' would have been better (the original, natural kill could
be aliased to 'killbynature'). I used to carry a shell script
similar to the ps|awkish answers others have posted which I called 'namedkill'
to kill processes by name not by process id.
Stuart.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug