Index

screen

install screen
sudo apt-get install screen
start screen
screen
create session and set title
screen -t mysession
re-attach screen session
screen -r
re-attach screen session and if necessary detach it first.
screen -d -r
re-attach screen session and if necessary detach it first and or create it.
screen -d -R
tells screen to turn on automatic output logging for the windows.
screen -L

inside screen

help
ctrl-a ?
detach screen from terminal
Ctrl+a d

navigating

set window title
ctrl-a A
window info
ctrl-a N
ctrl-a i
ctrl-a ctrl-i
Select window to open
ctrl-a '
ctrl-a "
create new window
ctrl-a c
ctrl-a ctrl-c
next window
ctrl-a space
ctrl-a n
ctrl-a ctrl-n
previous window
ctrl-a backspace
ctrl-a h
ctrl-a p
select window by number
ctrl-a 0
ctrl-a 1

splitting

horizontal split
ctrl+a S
vertical split
ctrl+a |
select next region
ctrl+a tab
remove region
Ctrl+a X
ctrl+a :remove

logging

log window contents
ctrl-a h
activate / deactivate log for current window
ctrl-a H