Introduction to Screen
Screen is a linux application that can be used for creating multiple shell (bash) terminals from a single session. For example, if you have logged into a remote machine using ssh and would like access to multiple terminal windows, you can use screen to get the job done. So essentially, you can think of Screen as a window manager that will enable you to create multiple “Terminal Tabs” inside a single terminal session. So Screen acts as terminal emulator that multiplexes multiple terminal processes and each virtual terminal provides the same functionality of a regular terminal.
You can check whether Screen is already installed on your machine by starting a terminal and running (without the $ symbol):
$ which screen
If it returns the following, then you are ready to use Screen.
If not, you can install it using the below command (assuming that you are running Ubuntu OS)
$ sudo apt-get install screen
Running Screen and Commands
To start screen, just open a terminal and type:
Screen now automatically creates a window with a single virtual terminal, and you are now inside the virtual terminal. To control Screen behavior, you can use the command Ctrl-a. If you want check the available commands, you can use Ctrl-a and type ? to bring up the list of available commands.
Click on the blocks below to learn about some of the most commonly used commands in Screen:
Have fun using Screen!