Skip to content

tmux

  1. Run using tmux
    1. Kill one of the terminal tmux kill-session -t 0
  2. Panes
    1. Horizontal - ctrl+b and then ”
    2. Vertical - ctrl+b and then %
    3. Switch between panes -> ctrl+b then -> or <-
  3. Windows
    1. Create a New Window Prefix + c or tmux new-window
    2. Switch between windows -> ctrl+b then n or p
      1. n for next & p for previous
    3. Close window Prefix then &
    4. Rename -> Prefix then , i.e. comma OR tmux rename-window new-name
  4. Sessions
    1. To end all the sessions use exit
    2. List all running tmux ls or tmux list-sessions
    3. Close tmux and Detach ctrl+b then d
      1. ctrl + b helps us send command to tmux
    4. Attach to most recent session -> tmux attach or tmux a
    5. Attach to a specific session -> tmux attach-session -t <session-name>
    6. Rename -> prefix $ OR tmux rename-session new-name
    7. Switch b/w session -> Prefix then s