ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.1 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://linuxcommandlibrary.com/man/screen |
| Last Crawled | 2026-04-09 16:37:50 (4 days ago) |
| First Indexed | 2021-09-02 02:42:05 (4 years ago) |
| HTTP Status Code | 200 |
| Meta Title | screen man | Linux Command Library |
| Meta Description | screen linux command man page: Terminal multiplexer with persistent sessions |
| Meta Canonical | null |
| Boilerpipe Text | Terminal multiplexer with persistent sessions
TLDR
Start a new screen session
$ screen
Start a named session
$ screen -S [session_name]
List active sessions
$ screen -ls
Reattach to a session
$ screen -r [session_name]
Detach from current session
(inside screen)
$ Ctrl+a d
Create a new window
(inside screen)
$ Ctrl+a c
Switch between windows
(inside screen)
$
**Split screen horizontally**
Kill current window
$ Ctrl+a k
SYNOPSIS
screen
[
-S
name
] [
-r
[
name
]] [
-ls
] [
-d
] [
command
]
DESCRIPTION
screen
is a terminal multiplexer that allows running multiple terminal sessions within a single window. Sessions can be detached and reattached, making them persistent across disconnections—essential for remote work and long-running processes.
Each screen session can contain multiple windows, each running its own shell or program. Windows can be split into regions to view multiple windows simultaneously.
Sessions persist even when you disconnect, whether intentionally or due to network issues. This makes screen invaluable for running processes on remote servers that must survive connection drops.
Copy mode allows scrolling through terminal history and copying text between windows or to the clipboard.
PARAMETERS
-S
name
Create session with specified name
-r
[
name
]
Reattach to a detached session
-R
Reattach if possible, otherwise start new session
-d
Detach a running session
-D
Detach and logout
-ls
,
-list
List all sessions
-x
Attach to a session that is already attached (multi-display)
-dm
Start in detached mode (for scripts)
-X
command
Send command to a running session
-L
Enable logging
-h
lines
Set scrollback buffer size
CONFIGURATION
~/.screenrc
Per-user configuration file for setting default options, key bindings, startup windows, and visual settings.
/etc/screenrc
System-wide configuration file applied to all users before the per-user file.
SCREENDIR
Environment variable overriding the default directory for session sockets (default: /tmp/screens/S-username).
KEY BINDINGS
All commands are prefixed with
Ctrl+a
(command character):
Ctrl+a c
: Create new window
Ctrl+a n/p
: Next/previous window
Ctrl+a "
: List windows
Ctrl+a 0-9
: Switch to window number
Ctrl+a d
: Detach from session
Ctrl+a k
: Kill current window
Ctrl+a S
: Split horizontally
Ctrl+a |
: Split vertically
Ctrl+a Tab
: Switch between regions
Ctrl+a X
: Close current region
Ctrl+a [
: Enter copy/scrollback mode
Ctrl+a ]
: Paste
Ctrl+a ?
: Show key bindings
CAVEATS
Screen's default configuration may conflict with some terminal features. Customize via
~/.screenrc
.
The command prefix
Ctrl+a
conflicts with readline's beginning-of-line. Remap with
escape
in .screenrc if needed.
Nested screen sessions require pressing the prefix twice (
Ctrl+a a
) to send commands to the inner session.
For modern alternatives with more features, consider
tmux
.
HISTORY
Screen was originally written by
Oliver Laumann
in
1987
and has been maintained by the GNU project. It was one of the first terminal multiplexers and established the paradigm that tmux and others follow.
SEE ALSO |
| Markdown | LinuxCommandLibrary
[](https://github.com/SimonSchubert/LinuxCommandLibrary)[](https://f-droid.org/en/packages/com.inspiredandroid.linuxcommandbibliotheca)[](https://play.google.com/store/apps/details?id=com.inspiredandroid.linuxcommandbibliotheca)
- [Basics](https://linuxcommandlibrary.com/)
- [Tips](https://linuxcommandlibrary.com/tips)
- [Commands](https://linuxcommandlibrary.com/commands)
# screen
## Terminal multiplexer with persistent sessions
## [TLDR](https://linuxcommandlibrary.com/man/screen#tldr)
**Start a new screen session**
\$ screen

**Start a named session**
\$ screen -S \[session\_name\]

**List active sessions**
\$ screen -ls

**Reattach to a session**
\$ screen -r \[session\_name\]

**Detach from current session** (inside screen)
\$ Ctrl+a d

**Create a new window** (inside screen)
\$ Ctrl+a c

**Switch between windows** (inside screen)
\$
\*\*Split screen horizontally\*\*

**Kill current window**
\$ Ctrl+a k

## [SYNOPSIS](https://linuxcommandlibrary.com/man/screen#synopsis)
**screen** \[**\-S** *name*\] \[**\-r** \[*name*\]\] \[**\-ls**\] \[**\-d**\] \[*command*\]
## [DESCRIPTION](https://linuxcommandlibrary.com/man/screen#description)
**screen** is a terminal multiplexer that allows running multiple terminal sessions within a single window. Sessions can be detached and reattached, making them persistent across disconnections—essential for remote work and long-running processes.Each screen session can contain multiple windows, each running its own shell or program. Windows can be split into regions to view multiple windows simultaneously.Sessions persist even when you disconnect, whether intentionally or due to network issues. This makes screen invaluable for running processes on remote servers that must survive connection drops.Copy mode allows scrolling through terminal history and copying text between windows or to the clipboard.
## [PARAMETERS](https://linuxcommandlibrary.com/man/screen#parameters)
**\-S** *name*
> Create session with specified name
**\-r** \[*name*\]
> Reattach to a detached session
**\-R**
> Reattach if possible, otherwise start new session
**\-d**
> Detach a running session
**\-D**
> Detach and logout
**\-ls**, **\-list**
> List all sessions
**\-x**
> Attach to a session that is already attached (multi-display)
**\-dm**
> Start in detached mode (for scripts)
**\-X** *command*
> Send command to a running session
**\-L**
> Enable logging
**\-h** *lines*
> Set scrollback buffer size
## [CONFIGURATION](https://linuxcommandlibrary.com/man/screen#configuration)
**~/.screenrc**
> Per-user configuration file for setting default options, key bindings, startup windows, and visual settings.
**/etc/screenrc**
> System-wide configuration file applied to all users before the per-user file.
**SCREENDIR**
> Environment variable overriding the default directory for session sockets (default: /tmp/screens/S-username).
## [KEY BINDINGS](https://linuxcommandlibrary.com/man/screen#key-bindings)
All commands are prefixed with **Ctrl+a** (command character):**Ctrl+a c**: Create new window**Ctrl+a n/p**: Next/previous window**Ctrl+a "**: List windows**Ctrl+a 0-9**: Switch to window number**Ctrl+a d**: Detach from session**Ctrl+a k**: Kill current window**Ctrl+a S**: Split horizontally**Ctrl+a \|**: Split vertically**Ctrl+a Tab**: Switch between regions**Ctrl+a X**: Close current region**Ctrl+a \[**: Enter copy/scrollback mode**Ctrl+a \]**: Paste**Ctrl+a ?**: Show key bindings
## [CAVEATS](https://linuxcommandlibrary.com/man/screen#caveats)
Screen's default configuration may conflict with some terminal features. Customize via **~/.screenrc**.The command prefix **Ctrl+a** conflicts with readline's beginning-of-line. Remap with **escape** in .screenrc if needed.Nested screen sessions require pressing the prefix twice (**Ctrl+a a**) to send commands to the inner session.For modern alternatives with more features, consider **tmux**.
## [HISTORY](https://linuxcommandlibrary.com/man/screen#history)
Screen was originally written by **Oliver Laumann** in **1987** and has been maintained by the GNU project. It was one of the first terminal multiplexers and established the paradigm that tmux and others follow.
## [SEE ALSO](https://linuxcommandlibrary.com/man/screen#see-also)
[tmux](https://linuxcommandlibrary.com/man/tmux "tmux man page")(1), [byobu](https://linuxcommandlibrary.com/man/byobu "byobu man page")(1), [dtach](https://linuxcommandlibrary.com/man/dtach "dtach man page")(1), [nohup](https://linuxcommandlibrary.com/man/nohup "nohup man page")(1)
COLLAPSE ALL
**Copied to clipboard**
[](https://github.com/SimonSchubert/Kai)
GitHub Sponsors
[](https://github.com/Dvd741 "Dvd741")[](https://github.com/vicenteserra "vicenteserra")[](https://github.com/Loh-San "Loh-San")
[♥️ Become a Sponsor](https://github.com/sponsors/SimonSchubert)
[Privacy Policy](https://linuxcommandlibrary.com/privacy-policy) \| [Terms and Conditions](https://linuxcommandlibrary.com/terms-conditions) \| [Contact](https://linuxcommandlibrary.com/contact)
[](https://apps.apple.com/us/app/linux-command-library/id1219649976)[](https://play.google.com/store/apps/details?id=com.inspiredandroid.linuxcommandbibliotheca)[](https://f-droid.org/en/packages/com.inspiredandroid.linuxcommandbibliotheca) |
| Readable Markdown | ## Terminal multiplexer with persistent sessions
## [TLDR](https://linuxcommandlibrary.com/man/screen#tldr)
**Start a new screen session**
\$ screen

**Start a named session**
\$ screen -S \[session\_name\]

**List active sessions**
\$ screen -ls

**Reattach to a session**
\$ screen -r \[session\_name\]

**Detach from current session** (inside screen)
\$ Ctrl+a d

**Create a new window** (inside screen)
\$ Ctrl+a c

**Switch between windows** (inside screen)
\$
\*\*Split screen horizontally\*\*

**Kill current window**
\$ Ctrl+a k

## [SYNOPSIS](https://linuxcommandlibrary.com/man/screen#synopsis)
**screen** \[**\-S** *name*\] \[**\-r** \[*name*\]\] \[**\-ls**\] \[**\-d**\] \[*command*\]
## [DESCRIPTION](https://linuxcommandlibrary.com/man/screen#description)
**screen** is a terminal multiplexer that allows running multiple terminal sessions within a single window. Sessions can be detached and reattached, making them persistent across disconnections—essential for remote work and long-running processes.Each screen session can contain multiple windows, each running its own shell or program. Windows can be split into regions to view multiple windows simultaneously.Sessions persist even when you disconnect, whether intentionally or due to network issues. This makes screen invaluable for running processes on remote servers that must survive connection drops.Copy mode allows scrolling through terminal history and copying text between windows or to the clipboard.
## [PARAMETERS](https://linuxcommandlibrary.com/man/screen#parameters)
**\-S** *name*
> Create session with specified name
**\-r** \[*name*\]
> Reattach to a detached session
**\-R**
> Reattach if possible, otherwise start new session
**\-d**
> Detach a running session
**\-D**
> Detach and logout
**\-ls**, **\-list**
> List all sessions
**\-x**
> Attach to a session that is already attached (multi-display)
**\-dm**
> Start in detached mode (for scripts)
**\-X** *command*
> Send command to a running session
**\-L**
> Enable logging
**\-h** *lines*
> Set scrollback buffer size
## [CONFIGURATION](https://linuxcommandlibrary.com/man/screen#configuration)
**~/.screenrc**
> Per-user configuration file for setting default options, key bindings, startup windows, and visual settings.
**/etc/screenrc**
> System-wide configuration file applied to all users before the per-user file.
**SCREENDIR**
> Environment variable overriding the default directory for session sockets (default: /tmp/screens/S-username).
## [KEY BINDINGS](https://linuxcommandlibrary.com/man/screen#key-bindings)
All commands are prefixed with **Ctrl+a** (command character):**Ctrl+a c**: Create new window**Ctrl+a n/p**: Next/previous window**Ctrl+a "**: List windows**Ctrl+a 0-9**: Switch to window number**Ctrl+a d**: Detach from session**Ctrl+a k**: Kill current window**Ctrl+a S**: Split horizontally**Ctrl+a \|**: Split vertically**Ctrl+a Tab**: Switch between regions**Ctrl+a X**: Close current region**Ctrl+a \[**: Enter copy/scrollback mode**Ctrl+a \]**: Paste**Ctrl+a ?**: Show key bindings
## [CAVEATS](https://linuxcommandlibrary.com/man/screen#caveats)
Screen's default configuration may conflict with some terminal features. Customize via **~/.screenrc**.The command prefix **Ctrl+a** conflicts with readline's beginning-of-line. Remap with **escape** in .screenrc if needed.Nested screen sessions require pressing the prefix twice (**Ctrl+a a**) to send commands to the inner session.For modern alternatives with more features, consider **tmux**.
## [HISTORY](https://linuxcommandlibrary.com/man/screen#history)
Screen was originally written by **Oliver Laumann** in **1987** and has been maintained by the GNU project. It was one of the first terminal multiplexers and established the paradigm that tmux and others follow.
## [SEE ALSO](https://linuxcommandlibrary.com/man/screen#see-also) |
| Shard | 152 (laksa) |
| Root Hash | 4018272077207904352 |
| Unparsed URL | com,linuxcommandlibrary!/man/screen s443 |