Sessions

tmux new -s session-name
tmux ls
tmux attach -t session-name
tmux kill-session -t session-name

Windows

Ctrl+b c - New window
Ctrl+b n - Next window
Ctrl+b p - Previous window
Ctrl+b & - Close window

Panes

Ctrl+b % - Split vertical
Ctrl+b " - Split horizontal
Ctrl+b o - Switch pane
Ctrl+b x - Close pane

Common mistakes / Pitfalls

  • People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
  • It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
  • Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026