screen
Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. When screen is invoked, it executes initialization commands from the files .screenrc in the user’s home directory and /usr/local/etc/screenrc.
- screen -AdmS session1 -t tab1 /bin/bash
screen -r <saessionName> # attach to session
- Ctrl+a Ctrl+d # detach from active session
- Ctrl+a Ctrl+b # next tab
- screen -ls # list sessions
- screen -S 1234.session1 -X quit # terminate session