Besides using Force Quit Applications to kill crashing or freezing applications, Mac users can also use Terminal to kill these persistent processes.
Like execution of End Process Tree in Windows Task Manager, using Terminal command to kill running process leads to the same effect (but in Terminal way).
Waste no more time, let’s begin the assassination.
Identify Running Processes
Within Mac OS X, there are so many running processes that identifying Process ID (PID) by wild-guess is out of the question. Luckily, there is this Terminal command called top to reveal running processes.
This running process analyzer can be stopped by pressing Q or Ctrl-C.
Shown Above. Running processes and their PIDs
Kill Identified Processes
Let’s say Mail is the process to be killed with its PID 1202. To kill it, this command line can be used :
If there are more than one process to be killed, more PIDs can be appended to the command. For example, you want to stop Mail, TextEdit and GrowlHelper (PIDs are shown on the previous screenshot), then command line below can be used
kill 1202 968 835
The same applies for other processes with their respective process IDs.