Job Control tutorial
Unless otherwise noted, these commands apply only to the C shell, Korn shell, and bash:
command&(, ): Runcommandin the background. You can continue to execute jobs in the foreground. All shells.CTRL-c(): Kill the current foreground job by sending the INTR signal (). All shells.CTRL-z(, ): Suspend the current foreground job by sending the TSTP signal ().- Suspend a shell with the suspend command ().
- Suspend a background job with the stop command or an alias that does the same thing ().
bg %num(): Let a stopped job (by job numbernum) continue in the background.fg %num(): Put a background job or a stopped job (by job numbernum) into the foreground.kill %num(): Kill an arbitrary background job (by job numbernum).killpid(): Kill an arbitrary job (by process ID numbernum). All shells.jobs(): List background and stopped jobs and their job numbers.set notify(): Immediate job-state change notices.stty tostop(): Automatically stop background processes if they try writing to the screen.
- ML