iamnearlythere

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).

screenCreate a new screen
screen -S nameCreate a new screen named "name"
screen -lsList screens
screen -DDetach from screen
screen -rAttach to the single existing screen
screen -r 4262Attach to the detached screen with pid 4262
screen -x 4262Reattach to the attached screen with pid 4262
ctrl+a cCreate a new terminal in the current screen
ctrl+a HLog all output of current screen to a log file
ctrl+a spaceChange terminals within current screen
ctrl+a :sessionname nameRename current screen to "name"
ctrl+a dDetach from current screen, like exit but keeps the terminal for reattaching later on

Comments