GNU screen Cheatsheet

Thursday 09 June, 2011

Options

-A - Adapt all windows to the new display width & height.
-r - Reattach session.
-R - Reattach session if there is one, otherwise start a new one.
-list - Show list of current screens.

Interactive

Use CTRL-A (^A for short) to get screen’s attention and then issue the following command:
(for example, to go to the next screen hold CTRL and then press a. Release and then press n)
NOTE: All commands are cAsE SenSiTiVE!

Common:

^A " - List all windows and their titles.
^A c - Create a new window.
^A k - Destroy the current window.
^A n - Next window.
^A p - Previous window.
^A d - Detach this screen.

Regions:

^A S - Split in half vertically.
^A | - Split in half horizontally.
^A TAB - Go to the next window.
^A Q - Kill all regions except the current.
^A X - Kill the current region.

Others:

^A 0-9 - Select the numbered window.
^A A - Set the title for the current window.
^A C - Clear the screen.
^A F - Resize window to match the current size.
^A l - Refresh the window (lowercase L)
^A M - Monitor window for activity.
^A _ - Monitor window for inactivity.
^A x - Lock terminal.
^A [ - Enter scrollback
^A ] - Write the contents of the paste buffer to stdin



Back