1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/screen.md

38 lines
667 B
Markdown
Raw Normal View History

2014-02-27 12:51:40 -08:00
# screen
> Hold a session open on a remote server. Manage multiple windows with a single SSH connection.
> See also `tmux` and `zellij`.
> More information: <https://manned.org/screen>.
2014-02-27 12:51:40 -08:00
- Start a new screen session:
2014-02-27 12:51:40 -08:00
`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:
2014-02-27 12:51:40 -08:00
`screen -ls`
- Reattach to an open screen:
2014-02-27 12:51:40 -08:00
`screen -r {{session_name}}`
2014-02-27 12:51:40 -08:00
- Detach from inside a screen:
2014-02-27 12:51:40 -08:00
`<Ctrl a><d>`
2015-12-28 21:20:38 -06:00
- Kill the current screen session:
`<Ctrl a><k>`
- Kill a detached screen:
2015-12-28 21:20:38 -06:00
`screen -X -S {{session_name}} quit`