Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 940 Bytes

process.adoc

File metadata and controls

19 lines (10 loc) · 940 Bytes

Control process execution

jobs, bg, fg, stop, and notify are shell built-in commands.

Tip
If you are running a job and wish to do something else you may press <Ctrl-z> which sends a STOP signal to the current job.
Tip
You can run a command line in background just adding a & at the end of the line, example: sleep 10 && echo Hello World &

jobs displays the status of the jobs that were started in the current shell environment

fg [%job] brings the current or specified jobs into the foreground, continuing them if they were stopped.

bg [%job] puts the current or specified jobs into the background, continuing them if they were stopped.

stop %job stops the current or specified jobs that are executing in the background.

notify [%job] causes the shell to notify the user asynchronously when the status of the current or specified jobs change.

Warning
notify is not available on ksh, and sh.