To kill a process that you own, simply issue the kill command and the Process ID (PID). The following example shows issuing the ps command to find all processes owned by martyp , killing a process, and checking to see that it has disappeared:
The example shows killing process 19424, which is owned by martyp . We confirm that the process has indeed been killed by reissuing the ps command. You can also use the -u option to ps to list processes with the login name you specify. You can kill several processes on the command line by issuing kill followed by a space-separated list of all the process numbers you wish to kill. Take special care when killing processes if you are logged in as superuser. You may adversely affect the way the system runs and have to manually restart processes or reboot the system. |