Using screen

GNU Screen is a Terminal multiplexer program that allows managing several Terminal sessions from with the single window.

Screen Features:

  • Keep programs and scripts running even when the network get disrupted.

  • Detach and reattach to a Terminal session from various sites.

  • Carry out a long-running program without keeping an active shell session.

  • Allows to share the session with other users

  • Splitting the Terminal window horizontally and vertically

  • Offers a wide range of shortcut keys

1. Launch Screen

screen [-S session_name]

Type Ctrl-A and ?, all the commands will be listed on the screen.

screen -ls

2. Detach session

Ctrl+A  –d

3. Reattach session

screen –r screen_ID/screen_name