Technically all the commands in this section apply to screen sessions. For brevity, we refer to screen sessions as simply screens.
screen
Ctrl-A, d
screen -ls
screen -S <screen-number> -X sessionname <screen-name>
screen -r <number-or-name>
screen -S myscreen
screen -d -m -S sharedscreen
screen -x sharedscreen
Ctrl-A, Shift-C
Ctrl-A, Shift-H
Writes to screenlog.<window-number>
.
Repeat again to stop logging.
Ctrl-A, Shift-M
Ctrl-A, _
Ctrl-A, [
Move around using vim commands (h
, j
, k
, l
, or arrow keys) to the start of your selection, press Return
to begin selection, move to the end of the selection, and press Return
agian to copy.
Ctrl-A, ]
Multiple windows can be opened per screen session.
Ctrl-A, c
Ctrl-A, Shift-A
Ctrl-A, Ctrl-A
Ctrl-A, n
Ctrl-A, p
Ctrl-A, 0
Ctrl-A, 1
... and so forth.
Ctrl-A, "
Ctrl-A, w
A display can be split horizontally and vertically into regions.
Ctrl-A, Shift-S
Ctrl-A, Tab
Ctrl-A, |
Ctrl-A, Shift-X
Ctrl-A, Shift-Q
Sources:
https://www.howtogeek.com/662422/how-to-use-linuxs-screen-command/
https://www.putorius.net/linux-screen-command.html
https://www.crybit.com/rename-screen-session/