There are two ways for sending the jobs to background in unix.
If a particular job is sent to background, another job can be executed on the terminal. No need to wait for the completion of previous job.
Usage is simple, typing bg will send the currently running job to the background, bg followed by process ID will send the job with specified process ID.
Syntax:
bg [Process ID]
Examples:
- With usage of Ampersand ( &)
- With CtrlZ + bg command
If a particular job is sent to background, another job can be executed on the terminal. No need to wait for the completion of previous job.
Usage is simple, typing bg will send the currently running job to the background, bg followed by process ID will send the job with specified process ID.
Syntax:
bg [Process ID]
Examples:
| bg | It will send the latest running job to background |
| bg 1009 | It will send the job with process ID 1009 to the background |
| bg 1006 254 78947 380 | Multiple jobs with process IDs 1006 254 78947 and 380 are being sent to the background |