Skip to content

TMux

Course: 5 tools for senior engineers (Code without your mouse) - chapter 7

Ref - https://github.com/tmux/tmux/wiki

TMux stands for terminal multiplexer

It let’s you create multiple

  1. Sessions
  2. Windows
  3. Panes

💡 I have an alias for t to point to tmux alias t=tmux

Common commands

  1. tmux
  2. ctrl + b + d - Detach from the session
  3. tmux ls
  4. tmux a -t 0
  5. tmux new -s aws
  6. tmux kill-session -t aws
  7. Pane management
  8. ctrl + b + % - split vertically
  9. ctrl + b + “ - split horizontally
  10. ctrl + b + arrow key - move around
  11. ctrl + b + q - see index of pane
  12. Window management
  13. ctrl + b + c - create new window in the same session
  14. ctrl + b + w - List of sesions + windows
  15. ctrl + b + , - Rename the window
  16. ctrl + b + n - Move around sequentally
  17. ctrl + b + number - Move to window number number
  18. ctrl + b + x or ctrl + b + &- kill pane
  19. ctrl + b + w followed by ctrl + b + x - kill window