kill all tmux sessions code example
Example 1: tmux how to kill all sessions
pkill -f tmux
Example 2: tmux kill all panes except 1
<prefix> + : kill -a -t paneNumberLeftStanding
Example pane 0 is left <prefix>:kill-pane -a -t 0
Example 3: tmux kill all sessions
tmux list-sessions | awk 'BEGIN{FS=":"}{print $1}' | xargs -n 1 tmux kill-session -t