Skip to content

tmux

session

  1. start a new session: tmux
  2. detach the current session: Ctrl + b d
  3. list all sessions: tmux ls
  4. attach previous session: tmux a or tmux attach
  5. attach to a session: tmux attach -t <session-name>
  6. change session: Ctrl + b s
  7. rename session
    1. Ctrl + b :
    2. rename-session <new-name>

windows

  1. create a new window: Ctrl + b c
  2. switch to the next window: Ctrl + b n
  3. switch to the previous window: Ctrl + b p
  4. switch to the window by index: Ctrl + b 0-9
  5. rename windows
    1. Ctrl + b :
    2. rename-window <new-name>

panes

  1. split the current pane horizontally: Ctrl + b %
  2. split the current pane vertically: Ctrl + b "
  3. navigating panes: Ctrl + b <arrow-key>
  4. close the current pane: Ctrl + b d