In screen the terminal multiplexer.
- new session
screen -S NewSession
- switch between sessions
ctrl
a
thenn
- detach to the current session
ctrl
a
thend
- list screens
screen -ls
- attach to an attached session
screen -x pidOfSession
- delete detached session
screen -X -S pidOfSession quit
- To split vertically:
ctrl
a
then |. - To split horizontally:
ctrl
a
thenS
(uppercase one). - To unsplit:
ctrl
a
thenQ
(uppercase one).