screen
Screen multiplexer. See tmux for a more "modern" alternative. The default command prefix is Ctrl
+ a
.
Executing stuff
Ctrl
+a
-w
→ Display all windows.Ctrl
+a
-c
→ Create a new window.Ctrl
+a
-A
→ Rename a window.Ctrl
+a
-n
→ Move to next window.Ctrl
+a
-p
→ Move to previous window.Ctrl
+a
-<number>
→ Move to a specific window (note that the numeration starts at zero).Ctrl
+a
-"
→ List available windows.Ctrl
+a
-k
→ Close the current window.
Workings with regions (panes)
Ctrl
+a
-S
→ Split horizontally.Ctrl
+a
-|
→ Split vertically.Ctrl
+a
-Tab
→ Move between windows.Ctrl
+a
-Q
→ Terminate all other regions.Ctrl
+a
-X
→ Terminate the current region.
To use the new pane, you need to move to it (Ctrl
+ a
- Tab
) and start a new session within it (Ctrl
+ a
- c
).
Working with sessions
Ctrl
+a
-d
→ Detach the current session.screen --list
/screen -ls
→ List detached sessions.Ctrl
+a
-r
→ Re-attach to the last used session. PID fromscreen -ls
or session name can be used to attach to the specific one.
Copying stuff between panes/windows
- Enter scrollback mode with
Ctrl
+a
-[
. - Move to the beginning of the stuff you want to copy and press space.
- Move to the end of the stuff you want to copy and mark the place with space.
- Go to the destination window and press
Ctrl
+a
-]
.
Global customization in /etc/screenrc
, user-specific in ~/.screenrc
.
Unless specified otherwise, this work is licensed under a Creative Commons BY-NC-SA 4.0.