Job control (Unix): Difference between revisions

Content deleted Content added
C shell is linked in the article already
Edit for accuracy
Line 3:
In a [[Unix]] or [[Unix-like]] [[operating system]], '''job control''' refers to controlling a [[process group]] as a [[job (computing)|job]] via a [[Unix shell| shell]]. Control features include suspend, resume, and terminate, and more advanced features can be performed by sending a [[signal (computing)|signal]] to a job. Job control allows a user to manage processing in the Unix-based [[multiprocessing]] environment, and is distinct from [[job control (computing)|general computing job control]].
 
[[POSIX]] specifies job control commands {{endash}} modeled after the Korn shell job control commands.<ref>{{man|cu|bg|SUS}}; {{man|cu|fg|SUS}}.</ref>. Command {{code|bg}} resumes the foreground job paused via {{keypress|Control|Z}} as a background taskjob. Command {{code|fg}} causedcauses the background taskjob to run in the foreground. Command [[wait (command)|<code>wait</code>]] pauses the interactive session until specified background jobs (of the active shell) complete. Specifying no jobs selects all background jobs of the active shell.<ref>{{cite web | last=Kerrisk| first=Michael |date=Feb 2, 2025 |title=wait(1p) — Linux manual page |website=man7.org |url=https://www.man7.org/linux/man-pages/man1/wait.1p.html |publisher= |access-date=May 13, 2025}} </ref>
 
Job control was first implemented in the [[C shell]] by Jim Kulp,<ref>