Screen command creates a virtual emulation of tty display.
Most useful scenario for screen command is while applying long running patch.When we lose the ssh connection over network, we can reattach the session if we were running task under screen.
To start screen session:
$ screen
To detach screen and go back to normal ssh session
$ ctrl+a +d
To list screen sessions
$ screen -ls
To reattach SCREEN session
$ screen -r
To reattach specific SCREEN session
$ screen -r <session-id>
To start screen session and assign session name to it
$ screen -S <session-name>
Most useful scenario for screen command is while applying long running patch.When we lose the ssh connection over network, we can reattach the session if we were running task under screen.
To start screen session:
$ screen
To detach screen and go back to normal ssh session
$ ctrl+a +d
To list screen sessions
$ screen -ls
To reattach SCREEN session
$ screen -r
To reattach specific SCREEN session
$ screen -r <session-id>
To start screen session and assign session name to it
$ screen -S <session-name>
No comments:
Post a Comment