ÅÝܽ¶ÌÊÓƵ

print friendly version

Questions and answers

203
How do I stop a process or command that's running in the background?


The commands described below need to be entered while logged in to the Unix server.   Normally you'll see a prompt ending with $ when the command interpreter (or shell) is ready for another command.

Issue the command :-

ps -fu username

(where username is your own username, such as ano23) to see which other processes you have running.  For example:

ps -fu ano23

Then, find the process number (PID) of the process (on the second column of the output from the ps command), and give the command

kill -9 pid

where pid is the process number for the command you want to stop.

Help us to improve this answer

Please suggest an improvement
(login needed, link opens in new window)

Your views are welcome and will help other readers of this page.

Categories

This is question number 203, which appears in the following categories:

Created by Andy Clews on 27 July 2001 and last updated by Andy Clews on 4 August 2015