← all cheat sheets

tmux cheat sheet

Two 10 × 11 cm cards — one for each side of a 15″ MacBook trackpad.

Print & cut
  1. Print on A4, landscape. In the print dialog set Scale = 100% (not “Fit to page”) and turn Margins → None/Default — this keeps the cards at exactly 10 × 11 cm.
  2. Cut along the dashed borders.
  3. Slide card 1 under the keyboard on the left of the trackpad, card 2 on the right.

Prefix key is Ctrl-b (shown as ⌃b). A key like c means: press Ctrl-b, release, then c.

Preview below is shown enlarged; it prints at real size (10 × 11 cm each).

tmux 1

prefix ⌃b

Shell — run from your terminal

tmuxstart server + session tmux new -s xnew named session x tmux lslist sessions tmux aattach to last session tmux a -t xattach to session x tmux kill-ses -t xkill session x tmux kill-serverkill everything

Sessions ⌃b then

ddetach slist / switch $rename ()prev / next Llast (toggle)

Config

~/.tmux.confconfig file :source ~/.tmux.confreload

Windows ⌃b then

cnew window ,rename wlist windows npnext / prev 09by number llast (toggle) ffind text &kill window
matuta.art/cheatsheets◀ left of trackpad

tmux 2

prefix ⌃b

Panes ⌃b then

%split left | right "split top / bottom ←↑↓→go to pane o;cycle / last qshow pane #s zzoom (toggle) {}swap panes Spacenext layout !pane → window xkill pane ←↑↓→resize by 5

Copy mode ⌃b [

[enter / scroll PgUppage up / down Spaceselect (vi: v) Entercopy (vi: y) /?search ↓ / ↑ gGtop / bottom qquit copy mode ⌃b]paste buffer

Misc ⌃b then

?list all keys :command prompt tbig clock
matuta.art/cheatsheetsright of trackpad ▶