Useful command for killing process

If you want to kill a process, but don’t know the process id, but you do know the service name, try this. It will get the process id and kill it all in one step.  Replace httpd with the process name you want to kill

ps auxwww | grep httpd | awk ‘{print $2}’ | xargs kill -15

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.