On Sat, Jan 21, 2012 at 11:28 PM, Brad Alexander <[email protected]> wrote: > Agreed. This command is much better than killall. I have worked with several > unices, and in other versions of Unix (AIX is where I got bitten by this), > killall is the command does just that. It kills all processes, as in during > shutdown of the machine. AIX's killall ignores patterns and just starts > shutting down the machine. > > I have used pkill ever since. > > A companion command to pkill is pgrep, which finds commands with a pattern, > for example, > > pgrep -u root sshd
Wow... this result was the one I was looking for hard. Thanks, > > will list all running sshd processes owned by root (thereby skipping a user > logged in remotely). > > --b > > 2012/1/21 Jörg-Volker Peetz <[email protected]> >> >> If you know the name of the process(es) to be killed, use the command >> pkill >> (from the package procps): >> >> pkill [options] pattern >> >> But be careful, this tool is a "sharp sword". >> -- >> Best regards, >> Jörg-Volker. >> >> >> -- >> To UNSUBSCRIBE, email to [email protected] >> with a subject of "unsubscribe". Trouble? Contact >> [email protected] >> Archive: http://lists.debian.org/[email protected] >> > -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CAG9cJmmbK+Cadg=grgb3oy1fviesoe7txzccec71k57nzb+...@mail.gmail.com

