To run long running jobs on linux and not have to be logged in, do the following:
1. Start a new screen session
screen -L -S longjob
2. Run your long-running command
This will allow you to see the output of the command while it’s also written to a log file
your-command --with --args |& tee -a ~/longjob.log
3. Detach and leave it running
Ctrl + A then D
4. Log out safely
exit
5. Reattach later
screen -r longjob
6. When you’re done
Ctrl + D