Linux Job Control
While running a job you can suspend a job using ctrl -z or terminate a job using ctrl -c.
You can list the current jobs using the command jobs. The list will show a number next to each job. You can control each job referencing using these numbers.
A job can be moved to the foreground by fg %N .
A job can be moved to the background by bg %N .
A job can be killed by kill %N && fg.
A job can be stopped by stop %N.
Where N is the job number.
You can even start a job in the background by putting & after the command command &.
4 years ago • 0 notes