Change the Prefix in tmux

From the tmux cheat sheet · Key Bindings · verified Aug 2026

Change the Prefix

Replace Ctrl-b while preserving prefix passthrough.

bash
unbind C-b
set -g prefix C-a
bind C-a send-prefix
📌 Keep send-prefix for nested sessions
💡 prefix2 supports a transition period
⚠️ Ctrl-a conflicts with a common shell shortcut
🎯 Change the prefix only when it improves workflow
prefixkey-bindingsnested-tmux

Continue with tmux

Save the full cheat sheet or work through every related task.

More tmux tasks

Back to the full tmux cheat sheet