screen
Install
Ubuntu
sudo apt install screen
Oracle Linux / Red Hat
sudo yum install screen
Check
screen --version
Usage
screen
screen -S sessionname
screen -ls
screen -r
screen -r 9999
Start screen with a generated sessionname
Start screen with a given sessionname included
List running screen sessions
Reattach to the first screen session
Within your screen session...
Ctrl+a ? Show available commands
Ctrl+a d Detach from screen session
Ctrl+a c Create a new window (with shell) the first available number from the range 0...9 will be assigned to it.
Ctrl+a " List all window
Ctrl+a 0 Switch to window 0 (by number )
Ctrl+a A Rename the current window
Ctrl+a S Split current region horizontally into two regions
Ctrl+a | Split current region vertically into two regions
Ctrl+a tab Switch the input focus to the next region
Ctrl+a Ctrl+a Toggle between the current and previous region
Ctrl+a Q Close all regions but the current one
Ctrl+a X Close the current region
Configuration
/etc/screenrc
~/.screenrc