Gnu Screen is a terminal multiplexer. With it you can mange multiple virtual terminals in one terminal session and discard them to background (all running scripts on virtual terminals continue running) to reactivate it later. So it’s possible to open various shells in one single SSH session. But I don’t want to go to much into detail, if you are interested more information about it visit their website or use any search engine out there!
To install it on any Debian/Ubuntu derivative:
Here are the most useful commands:
To get an overview of all deattached sessions just run
A detached session can be re-attached on your bash prompt with
The original look and feel of screen is very ugly. It’s hard to keep track of all the virtual terminals and it’s nasty that you’re not able to scroll within the screen.
Just save the following file to
$HOME/.screenrc and your screen-session will look like figure 1.
This configuration allows you among others to scroll within the screen and enables some more key-bindings:
Download it directly from your terminal: