-
Screen comes preinstalled on Mac, though doesn’t support 256 colours
$ brew tap homebrew/dupes $ brew install screen
-
Install screen on ubuntu
$ sudo apt-get update $ sudo apt-get install screen
# Open or resume screen session
$ screen -DR
# Close screen session
[Ctrl + a] then [d]
# Switch windows
[Ctrl + a] then [number of screen you want to switch to]
# Open a new window
[Ctrl + a] then [c]
# Close a window
$ exit