Wednesday, August 23, 2017

How to kill an abandoned process in Linux/Unix

I remembered it, then I forgot, then I remembered it, and then I forgot again.

In case of a Linux/Unit process hang, I have to figure out the PID of the stalled process and then use the kill command to close it.
  • To figure out the PID of the stalled process, in shell terminal type:
ps -u [username]

  • Then, use your own justification to figure out the PID. To kill a process with specific PID:
kill -9 [PID]

References:

How to see process created by specific user in Unix/linux
http://unix.stackexchange.com/questions/85466/how-to-see-process-created-by-specific-user-in-unix-linux

The kill Command
http://www.linfo.org/kill.html

2 comments:

  1. It is really Good blog post.provided a helpful information ruby on rails .I hope that you will post more updates like this keep updating the blogger.on Ruby on Rails Online Training Bangalore

    ReplyDelete
  2. Really Good blog post.provided a helpful information.I hope that you will post more updates like this Ruby on Rails Online Course

    ReplyDelete

How to kill an abandoned process in Linux/Unix

I remembered it, then I forgot, then I remembered it, and then I forgot again. In case of a Linux/Unit process hang, I have to figure out ...