tmux open a window code example
Example 1: tmux new session with command
tmux new -s [session_name]
Example 2: create a screen screen session tmux
tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}' | xargs kill
tmux new -s [session_name]
tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}' | xargs kill