Skip to content

Quick Screen -command reference

Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).

DescriptionCommand

Start a new session with session name
screen -S <session_name>
List running sessions / screensscreen -ls
Attach to a running sessionscreen -x
Attach to a running session with namescreen -r <session_name>
Detach a running sessionscreen -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.

Published inUncategorized