Kill a Specific Process of a Specific User

by damonp on October 18, 2005

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

Popularity: 2% [?]

{ 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: