Skip to content

Instantly share code, notes, and snippets.

@deanrather
Last active September 22, 2015 05:24
Show Gist options
  • Save deanrather/7f71bd0b080c373ae07c to your computer and use it in GitHub Desktop.
Save deanrather/7f71bd0b080c373ae07c to your computer and use it in GitHub Desktop.
Learning Screen

Learning Screen

Screen (or, gnu-screen) is a terminal emulator which will allow you to have multiple 'virtual terminals' within one actual terminal. A great benefit of screen is that these virtual terminals can run in the background, even after closing the real terminal, they can be picked back up later, even from another machine!

Installation

sudo apt-get install screen -y

Usage

screen launches screen and opens a new window, be sure to use screen -r if you want to reattach to existing windows.

CTRL+a d detaches from a window.

CTRL+a, c is to create a new window.

CTRL+a, a swaps terminals, this is also a great way to check if you're in screen or not to begin with .

CTRL+a, " lists windows, with their names.

CTRL+a, A to nAme a window.

exit will leave a window, and if you leave the last one you will exit screen.

CTRL+a, ? lists all the commands.

CTRL+a, ESC to enter copy mode, allowing you to scroll.

Configuration Reccomendations

~/.screenrc

# Prevent welcome dialogue
startup_message off

# Prevent screen from flashing (virtual bell)
vbell off

Futher Reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment