Jobs
Ref:
man bash
Suspend current process
Ctrl+Z
Terminate current process
Ctrl+C
Run command in background
Run <command>
in background
<command> &
List job
jobs
Job ID to PID
default is last job
%[<job ID>]
Resume process in background
# bash only
%[<job ID>] &
bg [%<job ID>]
Resume job in foreground
default is last job
# bash only
%[<job ID>]
fg [%<job ID>]
Kill job
kill %<job ID>
disown
don't terminate process when terminal exit
default is all jobs
disown [%<job spec>]
nohup
no hangup, ignore hangup signal
nohup <command>
don't terminate <command>
when terminal exit