Managing multiple terminals from one
SSH sessions, Konsoles, and xterms are heavyweight solutions for applications you want to run for a long time, but they perform a check infrequently (such as monitoring log files or disk usage).
The GNU screen utility creates multiple virtual screens in a terminal session. The tasks you start in a virtual screen continue to run when the screen is hidden.
Getting ready
To achieve this, we will use a utility called GNU screen. If the screen is not installed on your distribution by default, install it using the package manager:
apt-get install screen
How to do it...
- Once the screen utility has created a new window, all the keystrokes go to the task running in that window, except Control-A (Ctrl-A), which marks the start of a screen command.
- Creating screen windows: To create a new screen, run the command screen from your shell. You will see a welcome message with information about the screen. Press Space or Return to return to the shell prompt. To create a new...