Job control (Unix): Difference between revisions

Content deleted Content added
Organize into sections
Line 20:
 
==Job==
A job encompasses all of the processes that start for the handling of a shell [[command line]]. A simple command line mymay start just one process, but a command line may result in multiple processes since a process can create [[child process]]es, and a command line can specify a [[Pipeline (Unix)|pipeline]] of multiple commands. For example, the following command line selects lines containing the text "title", sorts them alphabetically, and displays the result in a [[terminal pager]]: <code>grep title somefile.txt | sort | less</code>. This creates at least three processes: one for [[grep|{{code |grep}}]], one for {{code |sort}}, and one for [[less (Unix)|{{code |less}}]]. Job control allows the shell to control these processes as one entity.
 
==Job ID==