HomeToolsAbout

GNU Screen

Installation

Check installation/version of screen

screen --version

Scrolling

# enter copy mode to start scrolling ctrl + A + Esc # Set scrollback to 10,000 line buffer ctrl + A + : scrollback 10000

Set default scrollback to 10,000 lines

defscrollback 10000

View Session

# View list of available screens screen -list # Show all window ctrl + a + w # View next available screen ctrl + shift + A + N # View previous available screen ctrl + shift + A + P # Start toggler to other windows ## press arrow keys to toggle through the available screens ctrl + A + "

Manage Sessions

# Start a new session or create new window ctrl + A + C

Named Sessions

# Set name on current window ctrl + a + A # Start a new session with name screen -S session_name

Detach/Reattach

# Detach window ctrl + a + d # List detached sessions screen -DR

Reattach a session

# by process_id screen -r process_id # by name screen -r session_name

Kill session

ctrl + A + K

Splits

# create split screen ctrl + a + S # switch between split screens ctrl + a + tab # kill all regions except current ctrl + a + q # remove active window from split screen ctrl + a + x
AboutContact