[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kill process by name



On Thu, Jan 22, 2004 at 01:47:38PM -0600, Rick Weinbender wrote:
> Is there a way to use the kill command
> to kill a process by name?
> *
> For example:  kill inetd
> I have to look up the pid number every time
> using 'ps aux' then I can kill it with 'kill pid#'

Me = Know!

kill `ps -C aux | cut -f2 -d' '`

Ha!  I am so smart!



Reply to: