kill tmux session 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
Example 3: linux tmux stop
tmux kill-session -t <Session-ID>