Screen shortcuts cheatsheet
Shortcut | Description |
---|---|
CTRL+a c | Create a new window (with shell) |
CTRL+a “ | List windows |
CTRL+a n | Go to next window |
CTRL+a p | Go to previous window |
CTRL+a CTRL+a | Toggle between the current and previous windows |
CTRL+a 0 | Put window 0 in focus |
CTRL+a F | Fit screen size to the new terminal window size |
CTRL+a A | Set title of the window in focus |
CTRL+a S | Split current window into two horizontal panes |
CTRL+a | | Split current window into two vertical panes |
CTRL+a TAB | Set focus to the next pane |
CTRL+a Q | Close all panes except for the current one |
CTRL+a X | Close the current pane |
CTRL+a x | Lock screen session |
CTRL+a d | Detach from screen session |
CTRL+a ESC | Use arrows to scroll back |
List running sessions:
[t00r@ultra ~]$ screen -ls
There is a screen on:
1785724.build (01/10/2022 05:35:42 PM) (Detached)
1 Socket in /run/screen/S-t00r.
Resume session:
``terminal
[t00r@ultra ~]$ screen -r 1785724
Start named session:
[t00r@ultra ~]$ screen -S build
.screenrc:
# Turn off the welcome message
startup_message off
# Disable visual bell
vbell off
# Set scrollback buffer to 10000
defscrollback 10000
# Customize the status line
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
Status line stolen from here.