tmux list sessions code example
Example 1: tmux new session
tmux new -s session_name
Example 2: tmux new session with command
tmux new -s [session_name]
Example 3: tmux kill all sessions
tmux list-sessions | awk 'BEGIN{FS=":"}{print $1}' | xargs -n 1 tmux kill-session -t