To scroll up in tmux, first enter copy mode by pressing Ctrl+b
followed by [
, then use arrow keys, Page Up/Down, or vi/emacs navigation keys.
Scrolling up in tmux requires entering "copy mode" first, which allows you to navigate through your terminal history. Copy mode also lets you select and copy text from your terminal.
Ctrl+b [
- Enter copy mode↑/↓
- Move up/down one linePage Up/Page Down
- Scroll up/down one pageHome/End
- Jump to top/bottom of bufferk
(up), j
(down)Ctrl+p
(up), Ctrl+n
(down)q
or Esc
- Exit copy mode and return to normal modeEnter
- In vi mode, this copies selected text and exits copy mode You can increase the scroll history with set-option -g history-limit 5000
in your .tmux.conf file. The default is usually 2000 lines.
If you're using tmux with mouse support enabled (set -g mouse on
), you can simply use your mouse wheel to scroll up and down.