Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).
| 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> |
Switching between screens
When you do nested screen, you can switch between screen using command โCtrl-Aโ and โnโ. It will be move to the next screen. When you need to go to the previous screen, just press โCtrl-Aโ and โpโ.
To create a new screen window, just press โCtrl-Aโ and โcโ.
Leaving Screen
There are 2 (two) ways to leaving the screen. First, we are using โCtrl-Aโ and โdโ to detach the screen. Second, we can use the exit command to terminating screen. You also can use โCtrl-Aโ and โKโ to kill the screen.
Thatโs some of screen usage on daily basis. There are still a lot of features inside the screen command. You may see screen man page for more detail or this page https://gist.github.com/jctosta/af918e1618682638aa82.
