Ctrl-b is the default shortcut to start

Sessions:

  • tmux list-sessions
  • tmux new -s $session-name
  • tmux new
  • tmux a [-t $session-name] : attach to existing session
  • tmux detach or Ctrl-b d : detach (keeps the session running)
  • tmux kill-session -t $session-name

Managing panes:

  • Ctrl-b % : new vertical pane
  • Ctrl-b " : new horizontal pane
  • Ctrl-b n : go to next pane
  • Ctrl-b x : close pane
  • Ctrl-b :resize-p -D 4 : 4 lines less down (other options: -U, -L, -R (up, left, right)

Window management:

  • Ctrl-b c : create new window
  • Ctrl-b n : go to next window
  • Ctrl-b p : go to prev window
  • Ctrl-b & : close window

Scrolling:

  • Ctrl-b [ then up/down, page up/down, q to quit

Help about keymap:

  • Ctrl-b ?

Links:

Go to index of articles.

Share on