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.

bg

[%%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,

    <Ctrl>+Z

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

    jobs

  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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.