From a terminal window start a new screen session with the command screen
. Do what you want and then when you want to detach use Ctrl-A d
.
Next time you want to return to the session use screen -r
.
If you ever forget if you have a session running and want to check use screen -ls
.
screen- Ctrl-A d
- screen -r
- screen -ls