Everytime a new application, shell or daemon is started, it gets
a PID or process id. The list of running processes on a UNIX system
can be obtained with the command ps
. For example, to get the
list of all running processes on the system, one can use ps -ax
or
ps -e
.
Each of these running processes can be controlled with signals:
signal(3)
.kill(1)
command.Processes running on the user's terminal can be controlled:
fg
.bg
.Several processes can be running in the background at the same time. They
can be stopped or brought forward individually. To get the list
of currently running jobs on the present terminal, use the jobs
command.
Usually, when a shell is terminated, all the jobs (children) that were started by it and are still running are also terminated.