Scheduled Execution

In addition to the standard UNIX mechanisms for scheduling the time at which a program will be executed, the shell provides its own internal scheduling mechanisms. The sched and commands can be used to run a process at some future time.


[%%job …]

Puts the specified jobs into the background. Job may be a number, a string, '', '%', '', or '-'.

Example: Suppose you're running a long job and you get bored waiting on it. You don't want to stop it because it has to be run, but you want your terminal back; therefore,

  1. Use the following key sequence: To suspend the job,


  2. To get the command's job number, use the following command:


  3. To restart the job in the background, use the following command:

    bg %1

exec command

Executes ...

Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.