how to kill all tmux sessions code example
Example 1: tmux how to kill all sessions
pkill -f tmux
Example 2: tmux kill all sessions
tmux list-sessions | awk 'BEGIN{FS=":"}{print $1}' | xargs -n 1 tmux kill-session -t
pkill -f tmux
tmux list-sessions | awk 'BEGIN{FS=":"}{print $1}' | xargs -n 1 tmux kill-session -t