learntmux.dev

The prefix key and new windows

Goal

Session learn has three windows and window 2 is current.

Keys go to the program in your pane until you press the prefix. C-b — Ctrl and b together — makes the next key a tmux command instead. C-b c opens a new window and makes it current.

Release matters. A space in a key name means let go: C-b c is C-b, release, then c. Holding Ctrl through the c runs something else entirely.

Windows are numbered from 0, and the status line marks two of them:

*
the current window
-
the last window, the one you came from
Do this

Press C-b c.

A second window opens and the list reads 0:shell- 1:sh*.

Press C-b c again.

The list reads 0:shell 1:sh- 2:sh* — window 2 is current, window 1 was last.

The full key notation

C- is Ctrl, M- is Meta (usually Alt), S- is Shift. The same notation appears in every tmux doc and in the key list.

Stuck on this one?

This is a live terminal. Typing goes to the machine, including Tab. Press Shift and Tab together to move focus back out to the page.

A real terminal, in this tab

about 15 MB, once

session learn

Done when

not started
  1. Session learn has three windows— not done yet
  2. Window 2 is the current window of session learn— not done yet