HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

screen — Hold a session open on a remote server. Manage multiple windows with a single SSH connection. See al

Submitted by: @import:tldr-pages··
0
Viewed 0 times
serversessioncommandcliopenholdscreenremote

Problem

How to use the screen command: Hold a session open on a remote server. Manage multiple windows with a single SSH connection. See also: tmux, zellij. More information: <https://manned.org/screen>.

Solution

screen — Hold a session open on a remote server. Manage multiple windows with a single SSH connection. See also: tmux, zellij. More information: <https://manned.org/screen>.

Start a new screen session:
screen


Start a new named screen session:
screen -S {{session_name}}


Start a new daemon and log the output to screenlog.x:
screen -dmLS {{session_name}} {{command}}


Show open screen sessions:
screen -ls


Reattach to an open screen:
screen -r {{session_name}}


Detach from inside a screen:
<Ctrl a><d>


Kill the current screen session:
<Ctrl a><k>


Kill a detached screen:
screen -X -S {{session_name}} quit

Code Snippets

Start a new screen session

screen

Start a new named screen session

screen -S {{session_name}}

Start a new daemon and log the output to `screenlog.x`

screen -dmLS {{session_name}} {{command}}

Show open screen sessions

screen -ls

Reattach to an open screen

screen -r {{session_name}}

Context

tldr-pages: common/screen

Revisions (0)

No revisions yet.