Start Tmux
# launch
tmux
# close
exit
Session Management
# start new session
tmux new-session
# start new named session
tmux new -s session_name
# kill session with session_name
tmux kill-session -t session_name
# delete all except current session
tmux kill-session -a
Switch Session
# list all sessions
tmux ls
# rename session
ctrl + b + $
# show all sessions with preview
ctrl + b + s
# detach from current session
ctrl + b + d
# attach to last session
tmux a
# attach to session_name session
tmux a -t session_name
# preview session and windows
ctrl + b + w
# move to previous session
ctrl + b + (
# move to next session
ctrl + b + )