# Start tmux: tmux # Prefix == Ctrl-b or Ctrl-w # Detach from tmux: Prefix d # Restore tmux session: tmux attach # Detach an already attached session (great if you are moving devices with different screen resolutions) tmux attach -d # Display session: tmux ls # Rename session: Prefix $ # Switch session: Prefix s # Start a shared session: tmux -S /tmp/your_shared_session chmod 777 /tmp/your_shared_session # Help screen (Q to quit): Prefix ? # Scroll in window: Prefix PageUp/PageDown # Reload configuation file Prefix : source-file /path/to/file # lauch command Prefix : # Zoom in tab Prefix z # Open pane in the current directory (alias configured) # Vertical Prefix _ # Horizontal Prefix / # Toggle recording terminal into a file Prefix P # Window management # ================= # Create window: Prefix c # Destroy window: Prefix & # Switch between windows: Prefix [0-9] or Prefix Arrows # Split windows horizontally: Prefix % # Split windows vertically: Prefix " # Turn a pane into a Window Prefix ! # Pane management # =============== # kill pane Prefix x # Buffer with vim keys # ==================== # jump to next word w # jump back one word b # jump to the next character f # move one page up Ctrl-b # move one page down Ctrl-f # Search in buffer (use and ) ? # For search downward / # Select some text # Use to quit and copy selected text in buffer space # paste content captured Prefix ] # commands # ======== # Copy the entire visible contents pane to the paste buffer capture-pane # show the content of the paste buffer show-buffer # list all pasted buffer list-buffers # Choos a buffer and past choose-buffer # Turn Window into a pane, take window of a session and join it to the current # session join-pane : # Mouve pane to another window join-pane -s :. # Move pane from pane to another join-pane -s :. : # Move window between sessions move-window -s : -t # Multi user # ========== # For use multi user you must make different session for have habilty to # seperate window # first create a simple session tmux new-session -s groupedsession # And connect to it with another session tmux new-session -t groupedsession -s mysession # Session management # ================== # Switch between session # Go to previous section Prefix ( # Go to next section Prefix ) # Display list of sessions Prefix s # Move window betweeb sessions Prefix .