Commands

  • Start new named session: tmux new -s [session]
  • Detach from session: ctrl+b d
  • List sessions: tmux ls
  • Attach to last opened session: tmux a
  • Attach to named session: tmux a -t [session]
  • Select and attach session: ctrl+b s
  • Kill named session: tmux kill-session -t [session]
  • Kill current session: exit
  • Split panes horizontally: ctrl+b “
  • Split panes vertically: ctrl+b %
  • Kill current pane: ctrl+b x
  • Move to another pane: ctrl+b [arrow key]
  • Kill tmux server, along with all sessions: tmux kill-server

References