I’m talking in terms of keystrokes, and you don’t know the PID.

pgrep fooapp | xargs kill - 9

That’s twenty-three characters, including whitespace, excluding the process name. What’s quicker?

2 Responses to “What’s the Fastest Way to Kill a Process?”

  1. Kelvin Says:

    killall fooapp

    Ok ok, just kidding. But, ‘ServerAlias thoughtdeposit.net’ in is only 30 characters long :P

  2. Ian Says:

    Yea, the thing about killall is it doesn’t seem to come standard with all distros :(, but if you have it, that would be the quicket way methinks.

Leave a Reply