Tmux

Tmux is a terminal multiplexer, enabling a number of terminals to be created, accessed, and controlled from a single screen.

Command Cheatsheet

  • tmux: Creates a unnamed session
    • tmux new -s <id>: Create a named session
  • tmux a: Attach to most recent session
    • tmux a -t <id>: Attach to specified session
  • tmux ls: List all sessions
  • tmux kill-session <id>: Kill specified session

Keybind Cheatsheet

Ctrl + b: Prefix key.

  • Session Management
    • d: Detach
  • Pane
    • %: Split horizontal
    • ": Split vertical
    • direction arrow: Switch pane
    • q: Quick jump to pane
    • Ctrl + direction arrow: Resize
    • Alt + direction arrow: Aggressive Resize
    • Alt + number: Apply layout
    • x: Kill pane
    • ,: Rename pane
  • Window
    • c: Create new window
    • w: Window List
    • n: Next window
    • &: Kill window
    • $: Rename window
  • Copy mode
    • [: Enter copy mode
    • (copy mode) space: starts copy
    • (copy mode) enter: ends copy

Resources