Shell Job Control


Forking

If a command ends in &, it is pushed to the background as a child process. The shell does not await that child process returning, and can exit immediately.

These child processes are called jobs, and they are managed with three builtins:

Note that the kill, disown, and wait builtins work on both processes and jobs.


Pushing to Background

With the keyboard sequence of Control+Z, a running process (such as emacs or vi) can be pushed to the background. Functionally this is the same as forking. So similarly, to resume work in the editor, use fg.


CategoryRicottone

Shell/JobControl (last edited 2023-01-30 00:53:29 by DominicRicottone)