Last Updated: February 25, 2016
·
877
· pjagielski

Killing process stuck in background

It is common that some unix processes get stuck and doesn't respond to Ctrl-C. You have to search it's PID then by ps -ef | grep ... and then pass that value to kill command.

There is a shorter method to send SIGKILL to such process. Just put it in the background by Ctrl-Z and then:

kill -9 %1

should kill it.

1 Response
Add your response

Great tip ! I've been in this situation several times ;)

over 1 year ago ·