tmux cheat sheet by Andrey Tarantsov logo

tmux cheat sheet by Andrey Tarantsov

Free

Essential tmux commands reference

FreeFree tier
Type
Open Source

About tmux cheat sheet by Andrey Tarantsov

A comprehensive tmux cheat sheet created by Andrey Tarantsov, available as a GitHub Gist. It covers essential tmux commands for managing sessions, windows, and panes, including prefix key remapping, keyboard shortcuts, and navigation. The cheat sheet is structured for quick reference, with sections on sessions (creating, attaching, detaching, switching), windows (creating, switching, renaming), and split panes (splitting, switching, moving). Also includes instructions for customizing the prefix key and enabling Vim-style navigation in help mode.

Key Features

Sessions management (create, attach, detach, switch)
Windows management (create, switch, rename, close)
Split panes management (split vertically/horizontally, switch, move)
Prefix key remapping (C-b to C-a or other)
Getting help (list keyboard shortcuts with C-a ?)
Vim or Emacs key bindings for help and copy mode
Switch between sessions, windows, and panes with various shortcuts

Pros & Cons

Pros
  • Comprehensive coverage of core tmux operations
  • Well-organized by sessions, windows, and panes
  • Includes prefix key remapping instructions
  • Free and open source (GitHub Gist)
  • Plain text format, easy to search and copy
Cons
  • Limited to basic commands (no advanced features like resizing, scripting, or buffers)
  • Static reference with no interactive practice
  • Assumes familiarity with terminal and tmux concepts

Best For

Learning tmux commands for beginnersQuick reference while using tmux in terminalTeaching tmux basics to new usersReminding of less frequently used shortcuts

FAQ

What is the default prefix key for tmux?
The default prefix is C-b (Ctrl+b).
How do I remap the prefix key?
Add lines like 'set -g prefix C-a' and 'unbind C-b' to ~/.tmux.conf.
How can I list all keyboard shortcuts?
Press C-a ? (prefix followed by ?) to display a list of shortcuts.
How do I create a new tmux session?
Use the command 'tmux new-session -s <name>'.
How do I split panes vertically and horizontally?
Use C-a " to split vertically (top/bottom) and C-a % to split horizontally (left/right).