Launches tmux with a default numbered session (0, 1, 2...).
tmux
Reference Guide
Terminal multiplexer -- sessions, windows, panes, and key bindings. Everything you need to manage persistent terminal sessions.
Session Management
EssentialSessions persist across terminal closes and SSH disconnects. Each session can have multiple windows.
Creates a session with a memorable name for easy reattachment.
Shows all running sessions with their window count and dimensions.
Reconnects to an existing named session. Use tmux a for the most recent.
Destroys the named session and all its windows/panes.
Terminates all sessions and the tmux server process entirely.
Opens a prompt to rename the current session.
Disconnects from the session but keeps it running in the background.
Opens a tree view of all sessions and windows for interactive selection.
Cycles through sessions in order.
Jumps to the most recently active session (capital L).
Window Management
EssentialWindows are like tabs within a session. Each window runs its own shell.
Opens a new window with a fresh shell in the current session.
Opens a prompt to give the current window a meaningful name.
Destroys the current window after a confirmation prompt.
Cycles forward or backward through windows in the session.
Jumps directly to a window by its index number.
Opens a tree view of all windows across all sessions.
Toggles to the previously active window (lowercase L).
Searches windows by name or content for quick navigation.
Reassigns the current window to a different index number.
Pane Management
IntermediatePanes split a window into multiple terminals side by side or stacked.
Creates a new pane to the right of the current one.
Creates a new pane below the current one.
Closes the current pane after confirmation.
Maximizes the current pane to fill the window, or restores it.
Moves focus to the pane in the arrow key direction.
Rotates focus through panes in order.
Toggles focus to the previously active pane.
Displays pane indices briefly. Press a number to jump to that pane.
Swaps the current pane's position with its neighbor.
Promotes the current pane to its own standalone window.
Resizes the current pane by 1 cell in the arrow direction. Repeatable.
Resizes the current pane by 5 cells in the arrow direction.
Rotates through built-in layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, tiled.
Copy Mode (Scroll & Select)
IntermediateCopy mode lets you scroll through terminal output, search, and copy text. Vi-mode bindings shown (default is emacs; set set -g mode-keys vi to switch).
Enters scrollback mode. Navigate with arrow keys or vi motions.
Returns to normal mode from copy mode.
Navigate through the scrollback buffer in copy mode.
Jumps to the start or end of the scrollback buffer (vi mode).
Begins text selection at the cursor position (vi mode).
Copies the selected text to the tmux paste buffer and exits copy mode.
Searches forward through the scrollback buffer.
Searches backward through the scrollback buffer.
Jumps between search matches in the scrollback.
Pastes the most recently copied text from the tmux buffer.
Opens a list of all paste buffers to select from.
Command Mode & Config
Intermediatetmux has a built-in command prompt for runtime configuration and key binding management.
Opens the tmux command line at the bottom of the screen.
Re-reads the config file without restarting tmux or losing sessions.
Changes a tmux option at runtime. Use -g for global scope.
Displays every global option and its current value.
Shows all current key bindings in a searchable list.
Creates a new key binding at runtime.
Removes an existing key binding.
Displays a searchable list of every key binding.
Displays a clock overlay in the current pane.
Shows brief info about the current window in the status bar.
Misc & Configuration
IntermediateUseful shortcuts, common config options, and power-user commands.
Shorthand to attach to the most recent session.
Shows tmux server information and terminal capabilities.
Reloads config from outside a tmux session.
Forces a redraw of the tmux client display.
Displays the tmux internal message/debug log.
Add to ~/.tmux.conf for mouse scrolling, pane selection, and resizing.
Sets the scrollback buffer to 50,000 lines (default is 2,000).
Numbers windows starting from 1 instead of 0 (easier to reach).
Add to ~/.tmux.conf to reload config with Prefix r.
Prints the installed tmux version number.
Common Workflows
PracticalReal-world usage patterns that combine multiple commands.
Creates a persistent dev environment that survives terminal closes, SSH drops, and can be reattached from any terminal.
Split vertically for a code editor on one side and a terminal on the other, then navigate between them.
Zoom in to read logs or debug output fullscreen, then zoom back out to restore your split layout.
Detach from a long-running process, do other work, then reattach to pick up exactly where you left off.
Enter copy mode to scroll through command output or search log files without a separate pager.
Open separate windows for server, tests, git, etc. and jump between them by number.
When a task in one pane grows too large for a split, promote it to its own full window.
The reverse of break-pane: pulls a pane from another window into the current one as a split.