How to use screen utility which is better than nohup
Step 1. As a result of running the command it takes you inside newly created session
screen -S sessionname |
Step 2. Run your command and then press the combination below to exit the screen
Ctrl+A then D (after releasing Ctrl + A) |
Step 3
screen -ls Output: There is a screen on: 3132.sessionname (01/27/2020 05:50:32 PM) (Detached) |
Step 4. To reconnect into existing session screen
screen -R 3132.sessionname |
Step 5. To quit the screen session
screen -XS 3132 quit |