new session:

tmux start new with fancy name: tmux new -s derp

attach session:

tmux a

  • attach to fancy named session:

tmux a -t derp

list sessions:

tmux ls

kill session:

tmux kill-session -t derp

destroy ALL the tmux sessions:

tmux ls | grep : | cut -d. -f1 | awk ‘{print substr($1, 0, length($1)-1)}’ | xargs kill