brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Ctrl-b PageUp scrolls tmux back without any setup

Tmux
~/tips/tip-tmux-page-up-scroll

Ctrl-b PageUp

Enters scrollback straight away and moves one page up, with no mouse and no extra config.

Output flew past and you want to read the top of it. You do not need to start copy mode separately.

Ctrl-b PageUp

One press enters copy mode and scrolls up a page. Keep pressing PageUp for more, or use the arrow keys. q leaves copy mode and brings you back to the live prompt.

Scrolling in the terminal itself does not show tmux history, because tmux draws its own screen. Copy mode is how you read what scrolled off.

If your keyboard has no PageUp key, Ctrl-b [ starts copy mode and the arrow keys move through the history. The amount of history you get is set by history-limit.

Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close it again with tmux kill-session -t scratch. Nothing else on your machine is touched.

Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official)

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link