Sunday, April 27, 2014

UNIX : Kill PID

How to kill process in UNIX ?

first get pid by using grep command.

root 21122 21123 0 13:00:01 ? 0:00 /temp/dummyscript.sh

get the PID number, yellow highlight for above output.

run this command : kill -9 21122 21123

or you can run multiple process by just add the pid number.

example : kill -9 12343 24437 372846 8364 8273 82746

No comments:

Post a Comment