tmux Terminal Multiplexer - Cheat Sheet
tmux is awesome and is highly recommended. Here is a man page.
Why Use Tmux?
- Persistence: If your SSH connection drops, your programs keep running.
- Workflow Efficiency: Split screens for viewing logs, editing code, and running tests simultaneously.
- Customization: Use a .tmux.conf file to change keybindings, add plugins (like tpm), and customize the status bar.
- Copy/Paste: Use Prefix + [ to enter copy mode, allowing you to scroll and copy text with vi-like motions.
Architecture
Session > Window > Pane:
- Session - for an overall theme, such as work, or experimentation, or sysadmin, may have more than one window;
- Window - for projects within that theme, may have more than one pane;
- Pane - for view within your current project.
flowchart TD
subgraph Session1
subgraph Window1
Pane11[Pane11]
Pane12[Pane12]
end
subgraph Window2
Pane21[Pane21]
end
end
See: