The complete tmux cheat sheet for 2026. Every prefix command, window management shortcut, pane splitting key, and configuration option in one quick-reference guide.
Tmux keeps your terminal sessions alive — detach on a remote server, reattach from your laptop, and everything is still running.
By the end of this 12 min guide, you'll have a working Tmux setup and practical Tmux workflows you can use immediately.
Install Tmux:
brew install tmuxtmux --version or tmux -V after installing.Your ~/.tmux.conf controls everything: prefix key, split behavior, colors, and plugins. Start with a minimal config and grow it.
Here's a foundational configuration to start with:
# tmux.conf
set -g prefix C-a
unbind C-b
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set -g mouse on
bind | split-window -h
bind - split-window -vWith Tmux configured, these Tmux-specific workflows will save you time every day:
Ctrl-a c create new window (tab)Ctrl-a | split pane verticallyCtrl-a - split pane horizontallyCtrl-a d detach and keep runningCtrl-a [ enter copy/scroll modeOnce you're comfortable with Tmux basics, these advanced techniques will transform your Tmux workflow:
set -g mouse on with pane resizing by dragHere are the most common Tmux issues and how to fix them:
tmux source ~/.tmux.confdefault-terminal "tmux-256color"Ctrl-a [ for copy modeset -g mouse onCongratulations — you now have a solid Tmux foundation. Here's where to go next: