tmux

17 commands

17 shown

New named session Start a new tmux session named 'work' tmux new-session -s work #tmux Attach to session Attach to an existing named session tmux attach-session -t work #tmux List sessions Show all active tmux sessions tmux ls #tmux Detach from session Detach from current session leaving it running in background <prefix> d #tmux Kill session Terminate a named session and all its windows tmux kill-session -t work #tmux Split pane horizontally Split current pane into left and right <prefix> % #tmux Split pane vertically Split current pane into top and bottom <prefix> " #tmux Navigate between panes Move focus to adjacent pane <prefix> <arrow keys> #tmux Resize pane Resize current pane down 5 rows (-U up, -L left, -R right) tmux resize-pane -D 5 #tmux New window Create a new window in current session <prefix> c #tmux Rename window Rename the current window <prefix> , #tmux Switch window by number Jump to window by its index number <prefix> 0-9 #tmux Enter copy mode Enter scroll/copy mode; use arrows or vi keys to navigate <prefix> [ #tmux Synchronize panes Send keystrokes to all panes simultaneously (multi-server ops) tmux setw synchronize-panes on #tmux Send command to all panes Run a command in every pane of the current session tmux list-panes -s -F '#{session_name}:#{window_index}.#{pane_index}' | xargs -I{} tmux send-keys -t {} 'uptime' Enter #tmux Scripted detached session Spawn background session and inject a command; survives SSH disconnect tmux new-session -d -s work && tmux send-keys -t work 'tail -f /var/log/app.log' Enter #tmux#troubleshooting#monitoring Capture pane scrollback Dump last 3000 lines of a pane to a file for triage without attaching tmux capture-pane -p -S -3000 -t work > /tmp/pane.log #tmux#debug#observability
no commands match