Quick solution for searching string among the ps aux result and kill all processes matching the name.

ps -ef | grep "UID SEARCH" | grep -v grep | awk '{print $2}' | xargs kill -9
comments powered by Disqus