Skip to main content
Back to Commands
Copy ModePrefix + [

copy-mode

Enter copy mode. In copy mode, you can scroll through history, search, and copy text. The mode-keys option controls whether vi or emacs keybindings are used.

Synopsis

bash
tmux copy-mode [-eHMqu] [-s src-pane] [-t target-pane]

Options

FlagDescription
-eScroll to bottom on output if already at bottom
-HHide output position indicator
-uPage up immediately
-qCancel copy mode and any selection

Examples

Enter copy mode

bash
tmux copy-mode

Enter copy mode and page up

bash
tmux copy-mode -u

Default Keybinding

Prefix + [

Default prefix is Ctrl+b

Pro Tips

  • Press q to exit copy mode
  • Use 'set-window-option -g mode-keys vi' for vim keybindings
  • In vi mode: Space starts selection, Enter copies
  • Search with / (forward) or ? (backward)