Jobs
Jump to navigation
Jump to search
The jobs command gives a list of current background jobs (processes). It usually is a built-in command from the used shell.
Example usage
Run some background jobs and see the list (this example is in bash):
$ sleep 60 & [1] 13524 $ sleep 60 & [2] 13534 $ jobs [1]- Running sleep 60 & [2]+ Running sleep 60 &
The jobs command can be used to kill a job or to start a suspended job as a foreground process.
- kill %1
- fg %1