We use screen to create a new virtual terminal inside your connected terminal.

Advantages of using screen:

1. If your terminal disconnects, you don’t lose your work.

2. You can share a virtual terminal with another person

To recover a current screen just type

If more than one person recover this screen the -x flag will allow you to share it.

Keystrokes for using screen

Ctrl+a c: Create another virtual terminal in screen
Ctrl+a w: List all your terminals inside your screen session
Ctrl+a d: Detach a current screen session
Ctrl+a k: Kill a Virtual Terminal
Ctrl+a n: Go to next virtual terminal
Ctrl+a p: Go to previous virtual terminal
Ctrl+a [num]: Go to terminal number [num]

Leave a Reply

Your email address will not be published. Required fields are marked *