Screen
When working remote via SSH, you often want to make sure that your processes continue to run, even if your connection dies. Screen is the tool for that. It creates shell sessions, that are detached from your terminal session. Thus they run, without you being connected. Also different users can share screen sessions with each other.
This are some of the basic commands:
Open a new screen session
screen
Get out of a running screen session (detach from terminal)
screen -d C-a C-D
What screen sessions are already there?
screen -list
If there already is one, let’s open that (attach it to your current terminal session)
screen -r
Or specify the screen to open
screen -r [sessionowner]/[pid.tty.host]
Read more on the screen man page
man screenAnother tip, put this in your ~/.screenrc to have a footer displaying all open screens:
caption always "%{kg}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kr}%?%+Lw%?"