learntmux.dev
Challenge · no new keys

Challenge: morning on the build box

Goal

Session work: editor, build with a full-width tail pane, monitor on top; detached and back.

Nothing new here. Every piece is something you have already used:

tmux new -s work -n editor
start the session and name window 0 in one line
neww -n name at C-b :
a named window; add -d to stay where you are, a program name to run something other than a shell
split-window -fv at C-b :
a pane across the full width, below the others
C-b d and tmux attach -t work
leave, and come back

The end state is checked, not the route. Read the status line after each step: it shows the session name, every window with its index, and which one is current.

Do this

Build session work so that:

Window 0 is named editor, created with the session from the plain shell.

A window build has two panes side by side and a full-width bottom pane running tail -f ~/build.log.

A window monitor runs top and is not current.

You have detached from work and reattached.

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. Window 0 of session work is named editor— not done yet
  2. Window build in session work has three panes— not done yet
  3. Window build has a full-width bottom pane running tail— not done yet
  4. A non-current window named monitor runs top— not done yet
  5. No client is attached to session work right after detaching— not done yet
  6. A client is attached to session work again after reattaching— not done yet