tmux

Terminal multiplexer — run multiple terminals from a single screen, detach and reattach sessions.

tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

Books about tmux