User Tools

Site Tools



The shell keeps track of every process. These are commands and executed programs that are running. Most of our commands and programs up to this point have had fast turn around time. This is not always going to be the case in computational biology. It is useful to know how to keep track of running processes and terminate them when they take too long or misbehave.

View processes with ps

View any running processes using ps


:!: Exercise:

  1. Open a second terminal.
  2. Navigate to the same directory that contains
  3. Execute ./ in the second terminal. Do not enter your name.
  4. In the first terminal, execute ps.

Terminate processes

Let's say we want to terminate a program that we started. This is often necessary to do when we change our mind or the program is doing something wrong.

:!: Exercise: Terminate a process with CTRL + C

$./ #start the program. Don't give it your name
$CTRL+C # Hold down both the control key and 'C' key at once

:!: Exercise: Terminate a process using kill:

In ONE terminal:

$./ #start the program. Don't give it your name

In the SECOND terminal:

$kill <pID number>

Chaining and Customizing

wiki/2016processes.txt ยท Last modified: 2016/08/31 14:36 by erin