Killing jobs

Jobs are sometimes run out of control or submitted by mistake. These can be removed simply using either top or ps.

Using top
- Start top with
        top -u username 
where username is replaced by your username. To kill a job
- You should see a prompt saying 'PID to kill'
- Enter the PID (Process IDentifier) of the job you want to kill. This is the number in the first field.
Confirm with y when you see the message 'Kill PID xxxx with signal [15]:'. Your job should disappear.
- Enter q to quit top.

Using ps
Use ps to find out out what jobs you are running
    ps -u username

Then enter
    kill -9 PID

where PID is the process idenfier - the number is in the second field.