Click the virtual machine below to start practicing
- Setting up virtual machine…
- Preparing lab files…
- Starting terminal services…
This lab machine has stopped
Your progress through the guide is saved. Start a fresh machine to keep practicing.
Click the virtual machine below to start practicing
Your progress through the guide is saved. Start a fresh machine to keep practicing.
From the last lab. Answer in your head, then open to check.
Ctrl-b c creates one; Ctrl-b 2 jumps to window 2.* after a window name in the status bar mean?Panes split one window into several terminals side by side, like an editor next to a running server.
Keys are written Ctrl-b then %: press Ctrl+b, let go, then press %. Ctrl-b is tmux's prefix: it tells tmux the next key is for it.
A pane is a window split into separate terminals. Each pane runs its own shell, with its own current directory and history, so a server in one pane and an editor in another don't affect each other.
Closing the last pane in a window closes the window. Zoom (Ctrl-b z) doesn't change the layout: it shows one pane full size and hides the rest until you zoom out.
-n names the first window:
tmux new -s work -n code
Press Ctrl-b %. The window splits into a left and a right pane, and you're in the new right one.
Press Ctrl-b ". The right pane splits into a top and a bottom.
Ctrl-b then an arrow key moves to the pane in that direction. Ctrl-b o cycles through them.
Go to the left pane and run:
echo LEFT
Ctrl-b z makes the current pane fill the window, and pressing it again puts it back. The status bar shows Z while zoomed. Zoom in now.
Unzoom (Ctrl-b z), then type exit in one of the panes. (Ctrl-b x closes the current pane after asking.) The others fill the space.
Ctrl-b % splits side by side; Ctrl-b " splits top and bottom.Ctrl-b + arrow, or Ctrl-b o, moves between panes.Ctrl-b z zooms one pane in and out.exit or Ctrl-b x closes a pane.