Background jobs in the shell — &, jobs, nohup
cheat sheet · bash https://lab.dimsanych.ru/en/wiki/background-jobs/Cheat sheet
-
cmd &send to background -
jobs -llist background jobs + PID -
fg %1bring job 1 to the foreground -
bg %1resume job 1 in the background -
Ctrl+Zsuspend -
nohup cmd > out.log 2>&1 &survive logout -
cmd1 & cmd2 & waitrun in parallel and wait - a service — use systemd; a long interactive task — use tmux