###### Start a new session with the name mysession #############
tmux new -s mysession
################################################################
# kill/delete all sessions but mysession
tmux kill-session -t mysession
###### Show all sessions #######################################
tmux ls
################################################################
###### Attach to a session with the name mysession #############
tmux attach-session -t mysession
################################################################
###### Detach from session #####################################
(Ctrl + b) + d
################################################################
# start a new session with the name mysession and window mywindow
tmux new -s mysession -n mywindow
# use arrow key to scroll the screen printout
(Ctrl + b) + [
# Create window
(Ctrl + b) + c
# Switch/select window by number
(Ctrl + b) + (0 ... 9)
# Close current window
(Ctrl + b) + &
# Split pane vertically
(Ctrl + b) + %
# Split pane horizontally
(Ctrl + b) + "
# Switch to pane to the direction
(Ctrl + b) + (arrow)
# Close current pane
(Ctrl + b) + x