Friday 27 April 2012

Finding and killing a process in Linux

To find a process, use
 ps ux | grep <process_name>  

Where <process_name> is the name, or part of the name of the process you want to find.

Look up the process ID (the number in the output), and then use
 kill -9 <process_number>  

Where <process_number> is the process ID of the process you want to kill.

No comments:

Post a Comment

Please leave a comment if you find this blog helpful or interesting! I'd love to hear from you!