Screen
Screen could be used as nohup
with the additional possibility of attaching to the terminal session again, once your ssh session was aborted (or equivalent).
screen
- Create a new screenscreen -S name
- Create a new screen named "name"screen -ls
- List screensscreen -D
- Detach from screenscreen -r
- Attach to the single existing screenscreen -r 4262
- Attach to the detached screen with pid 4262screen -x 4262
- Reattach to the attached screen with pid 4262ctrl+a c
- Create a new terminal in the current screenctrl+a H
- Log all output of current screen to a log filectrl+a space
- Change terminals within current screenctrl+a :sessionname name
- Rename current screen to "name"ctrl+a d
- Detach from current screen, like exit but keeps the terminal for reattaching later on