$ tmux
: Open a new session
$ tmux ls
: List tmux sessions
$ tmux a
: Attach the last session
$ tmux a -t {$n}
: Attach an existing session
^B + d
: Disconnect the session
^B + $
: Rename the session
^B + s
: Switch to another session
^B + : + kill-session
: Kill the session
^B + "
: Divide horizontally
^B + %
: Divide vertically
^B + (arrow keys)
: Switch between the panels
^B + x
: Close the panel
^B + (space)
: Change layout
^B + [
: Scroll copy mode
^B + ,
: Rename the window
^B + c
: Create a new window
^B + n
: Go to the next window
^B + p
: Go to the previous window
^B + 0-9
: Go to the 0-9 window
^B + &
: Close the window