Kill a Specific Process of a Specific User

by damonp on October 18, 2005

in Snippets

kill -9 `ps -aux | grep user | grep processname | awk ‘{print $2}’`

Popularity: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

{ 1 comment… read it below or add one }

Elliot Anderson November 4, 2005 at 4:23 am

My version is similar:

ps -aux | grep $username | grep $application | awk ‘{print $2}’ | xargs kill -9

Reply

Leave a Comment

Previous post:

Next post: