Screen & Tmux/shaare/E2SJQw
Screen (Terminal Multiplexer)
- Multi-terminal sessions in one window
Alt+a |→ split verticalAlt+a Shift+s→ split horizontalAlt+a Tab→ switch windowsAlt+a c→ create new sessionscreen -r→ reconnect to detached sessionscreen -r [id]→ recover session by ID
TMUX (Terminal Multiplexer)
Ctrl+b Shift+%→ split window horizontallyCtrl+b d→ detach sessionCtrl+b Arrow Keys→ move between panesCtrl+b Shift+"→ split window verticallytmux ls→ list sessionstmux a→ resume last sessiontmux new -s name→ create named sessionCtrl+b c→ new windowCtrl+b n→ switch to next windowtmux attach-session -t 0→ attach session ID 0Ctrl+b ,→ rename windowtmux kill-session -t 0→ kill session ID 0
TMUX Advanced Commands
tmux new -s name→ new named sessionCtrl+b c→ new windowCtrl+b n→ switch to next windowtmux attach-session -t 0→ attach session 0Ctrl+b ,→ rename windowtmux kill-session -t 0→ kill session 0
(97)