Sometimes you may decide that you have mistakenly put a process in the background , or after checking the status of a process you may decide that it is taking too long to execute. You can cancel a background process using the kill command. You simply type the PID number of the process you want to stop following the kill command. Use the ps command to get the PID number if you have forgotten it. As an example, suppose you wanted to terminate the spell command process of our previous example which had a PID number of 4596.
Some processes can be difficult to terminate.
Please ask us . Copyright 2001 Purdue University. All rights reserved.