tmux Panes
Panes split a single window into multiple side-by-side terminals — great for watching logs while editing code.
Split shortcuts (after prefix Ctrl+b)
| Keys | Action |
|---|---|
% | Split vertically (side by side) |
" | Split horizontally (stacked) |
| Arrow keys | Move between panes |
x | Close current pane |
z | Zoom current pane fullscreen (toggle) |
Ctrl+arrow | Resize pane |
From the command line
tmux split-window -h # Horizontal split (side by side)
tmux split-window -v # Vertical split (stacked)
A typical layout
+-------------------+-------------------+
| | |
| vim editor | tail -f app.log |
| | |
+-------------------+-------------------+
| htop (bottom pane) |
+----------------------------------------+
Built with: split-window -h, then in the right pane split-window -v.