| Description |
Command |
| Start a new session with session name |
screen -S <session_name> |
| List running sessions / screens |
screen -ls |
| Attach to a running session |
screen -x |
| Attach to a running session with name |
screen -r <session_name> |
| Detach a running session |
screen -d <session_name> |
All screen commands are prefixed by an escape key, by default Ctrl-a (that's Control-a, sometimes written ^a). To send a literal Ctrl-a to the programs in screen, use Ctrl-a a. This is useful when when working with screen within screen. For example Ctrl-a a n will move screen to a new window on the screen within screen.
| Description |
Command |
| detach |
Ctrl-a d |
| detach and logout (quick exit) |
Ctrl-a D D |
| exit screen |
Ctrl-a : quit or exit all of the programs in screen. |
| force-exit screen |
Ctrl-a C-\ (not recommended) |
| Description |
Command |
| See help |
Ctrl-a ? (Lists keybindings) |