Skip to main content
Browse referenceEssential Commands

Essential Commands

Search the full tmux command reference — every command with examples, options, and keybindings. Default prefix is Ctrl+b. New to tmux? Start with core concepts to understand the fundamentals.

Verified Jul 2026 for tmux 3.7b
6 min read
intermediate

Showing 41 of 41 commands

Session Management

Window Management

Pane Management

Copy Mode

Miscellaneous

source-file

Short: source

Execute commands from a file. This is typically used to reload the tmux configuration.

2 examples•4 options

display-message

Prefix + i

Short: display

Display a message in the status line. If no message is given, display information about the current pane.

3 examples•6 options

set-option

Short: set

Set a session, window, or server option. Without -g, the option is set for the current session.

4 examples•9 options

send-keys

Short: send

Send keys to a pane. This is useful for scripting tmux to automate commands.

4 examples•7 options

list-keys

Prefix + ?

Short: lsk

List all key bindings. Shows the key tables (prefix, root, copy-mode, etc.) and their bindings.

3 examples•5 options

bind-key

Short: bind

Bind a key to a command. The key is bound in the prefix table by default.

4 examples•4 options

display-popup

Short: popup

Open a temporary popup terminal floating above the current client, running a command (a shell by default). Great for quick tools without disturbing your layout.

3 examples•8 options

display-menu

Prefix + <

Short: menu

Display an interactive menu at the given position. Each item has a display name, a shortcut key, and a tmux command to run when chosen.

2 examples•5 options

pipe-pane

Short: pipep

Pipe a pane's output to a shell command for live logging. With no command, any existing pipe is stopped.

2 examples•4 options

set-hook

Set (or unset) a hook that runs a tmux command automatically when an event occurs, such as a session being created or a window being linked. Flags mirror set-option.

2 examples•5 options

if-shell

Short: if

Run the first command if shell-command succeeds, otherwise the optional second command. With -F, no shell runs and the condition is a format that is true unless empty or zero.

2 examples•3 options

run-shell

Short: run

Run a shell command (or, with -C, a tmux command) without opening a window. Any output is shown in view mode in the pane once the command finishes. Used heavily by plugins.

2 examples•6 options

Server

🎨 Customize Prefix Key

The prefix key is the command that tells tmux "hey, listen to the next keypress". By default, it's Ctrl + b. Learn more about customizing this and other settings in the Configuration guide.

bash
# Add to ~/.tmux.conf
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix