How to get/kill process in ubuntu

For example if process name is php, you can get a list of jobs by using the command bellow

ps aux | grep php

Result

root      7749  0.0  0.1   3236   796 pts/2    S+   16:09   0:00 grep php
root     19292  1.8  5.6  90624 28528 ?        S    01:36  16:09 php test.php

To kill a process you can use kill with a specific pid, for instance 19292 above

kill 19292

And kill all php process

killall -9 php

One Comment

  1. JAIMIE says:

    I have happened to be seeking all around for that stuff. Good thing I just discovered it at Yahoo.