-a | Forces all capabilities into each window's terminal capability (termcap). |
`-A -[r | R]` |
-c file | Uses a custom configuration file instead of the default .screenrc . |
-d (-r) | Detaches a running screen session from elsewhere and reattaches it here. |
-dmS name | Starts screen in detached mode with a session name (like a background task). |
-D (-r) | Detaches and logs out a remote session and reattaches it here. |
-D -RR | Does whatever is needed to connect to a screen session. |
-e xy | Changes the default control command characters. |
-f | Enables flow control. Use -fn to disable, or -fa for auto mode. |
-h lines | Sets the scrollback buffer size (number of history lines). |
-i | Interrupts output sooner when flow control is on. |
-l | Turns on login mode (updates /var/run/utmp ). Use -ln to disable. |
-ls [match] | Lists all current screen sessions, with optional name match. |
-L | Enables output logging to a file. |
-m | Ignores the $STY variable; forces a new session to start. |
-O | Chooses optimized output over exact VT100 emulation. |
-p window | Pre-selects the named window when screen starts. |
-q | Starts screen quietly. Returns error code if it fails. |
-Q | Sends command output to the stdout of the calling process. |
-r [session] | Reattaches to a detached session (if it exists). |
-R | Reattaches to an existing session or starts a new one. |
-S sockname | Sets a custom session socket name (helpful for managing multiple sessions). |
-t title | Sets a window title (name of the terminal window). |
-T term | Uses a specific terminal type instead of the default screen . |
-U | Enables UTF-8 encoding support inside the session. |
-v | Prints screen version and build date. |
-x | Attaches to a session even if it's already attached (multi-display mode). |
-X | Executes a screen command in a specific session from outside. |