Command | Description |
---|---|
screen –S NAME |
Create new screen |
screen -ls |
List all screens started on the machine |
screen –r NAME |
Reattach a session (if it is detached) |
screen –x NAME |
Reattach to a session even if it is attached by other terminal. |
[ctrl + a] [d] | Detach from the current screen. Executed from inside the screen |
[ctrl + d] | Terminate screen. Executed from inside the screen |
screen -X -S NAME quit |
Terminate a screen while not attached to it |
Command | Description |
---|---|
[ctrl + a] [c] | Create a new window |
[ctrl + a] [n] | Go to the next window |
[ctrl + a] ['] | Select which window to use |
[ctrl + a] ["] | Prompt list of windows |
[ctrl + a] [k] | Kill current window |
[ctrl + a] [esc] | Scroll up the screen to check more history |