Scrolling Through Output with Copy Mode

When you work with programs in the terminal, it’s common that the output from these programs scrolls off the screen. But when you use tmux, you can use the keyboard to move backwards through the output buffer so you can see what you missed. This is especially useful for those times when you’re running tests or watching log files and you can’t just rely on the less command or your text editor.

Pressing Prefix [ places you in Copy mode. You can then use your movement keys to move the cursor around the screen. By default, the arrow keys work. But in Chapter 2, Configuring tmux, you configured tmux to use Vim keys for moving between windows and resizing panes so you wouldn’t have to take your hands off ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.