Linux - use multiple screens on one terminal

# Install screen
yum install screen

# Start screen session. You can name your window/session (1 is name of session)
screen -S 1

# Create new session
# first hit CTRL+a, releases both keys and press c

# Switching between sessions
# first hit CTRL+a, releases both keys and press n

# list all sessions
# first hit CTRL+a, releases both keys and press "

# switch to window by number
# first hit CTRL+a, releases both keys and press '

# help manual
# first hit CTRL+a, releases both keys and press ?

Ctrl+a c --- new window
Ctrl+a n --- next window
Ctrl+a p --- previous window
Ctrl+a " --- select window from list
Ctrl+a Ctrl+a --- previous window viewed

Ctrl+a :resize --- resize region
Ctrl+a :fit --- fit screen size to new terminal size
Ctrl+a :remove --- remove region
Ctrl+a tab --- Move to next region

Ctrl+a d --- detach screen from terminal, Start screen with -r option to reattach
Ctrl+a A --- set window title
Ctrl+a x --- lock session, Enter user password to unlock
Ctrl+a [ --- enter scrollback/copy mode, Enter to start and end copy region. Ctrl+a ] to leave this mode
Ctrl+a ] --- paste buffer, Supports pasting between windows
Ctrl+a > --- write paste buffer to file, useful for copying between screens
Ctrl+a < --- read paste buffer from file, useful for pasting between screens

Ctrl+a ? --- show key bindings/command names
Ctrl+a : --- goto screen command prompt, up shows last command entered


Comments