How to put a process in the background and keep it running
#Starting a process in the background
You will often want to run programs or tasks in the background, meaning it won’t keep your terminal unusable for other commands.
Simply append &
to the command and it will detach it from the terminal.
That’s it. Cannot be more simple than that.
Note that you can still redirect outputs to files and it is strongly advised. If you do not redirect, you will lose standard output and errors will still be displayed to the console.
#Keep a process running while closing terminal, logging out or disconnecting from ssh
Disconnecting will usually kill your process even when running in the background, this is
because it receives a HUP signal and terminates.
To avoid this behaviour -usually you want to avoid it when sending a command through ssh-, you need to use nohup.