I run both regular Chrome and Chrome Canary (from now on, Canary). Sometimes I want to kill all subprocesses, Google Chrome Helper, of Canary. The problem is that they have the same name as the subprocesses of regular Chrome so killall "Google Chrome Helper" would kill both Canary's and Chromes' subprocesses.

How can, with a "oneliner" or similar, I kill all subprocesses of Canary without killing the subprocesses of Chrome with the same name?

Mac OS X


Try using the -P option of pkill:

-P ppid Restrict matches to processes with a parent process ID in the comma-separated list ppid.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.