Tmux

Manage tmux terminal sessions

gebruder ab9dca7 731 B Updated

File contents

Tmux

Manage tmux sessions, windows, and panes.

Sessions

  • List: tmux ls
  • New: tmux new-session -d -s <name>
  • Kill: tmux kill-session -t <name>
  • Send command: tmux send-keys -t <session> '<command>' Enter
  • Capture output: tmux capture-pane -t <session> -p

Windows and panes

  • New window: tmux new-window -t <session>
  • Split horizontal: tmux split-window -h -t <session>
  • Split vertical: tmux split-window -v -t <session>
  • List windows: tmux list-windows -t <session>

Tips

  • Use tmux send-keys + tmux capture-pane to run commands and read output in background sessions
  • Always check tmux ls before creating new sessions

gebruder/wirken/tree/main/skills/tmux commit ab9dca7d13

Frequently asked questions

npx skillmds@latest add gebruder/tmux