list-keys
Short form: lsk
List all key bindings. Shows the key tables (prefix, root, copy-mode, etc.) and their bindings.
How list-keys works
list-keys shows key bindings. On its own it prints every binding in every key table, written as bind-key commands you could paste into a config. That makes it the definitive answer to 'what does this key do?'
Bindings live in tables. prefix holds keys pressed after the prefix, root holds keys that work without it, and copy-mode and copy-mode-vi hold copy mode keys. -T shows one table, and adding a key at the end shows just that key.
The default keys use list-keys too: Prefix + ? shows keys that have notes (list-keys -N) in a scrollable view, and Prefix + / asks you to press a key and then describes it.
Synopsis
tmux list-keys [-1aNr] [-F format] [-O order] [-P prefix-string] [-T key-table] [key]Options
| Flag | Description |
|---|---|
| -T key-table | Show only bindings in specified table |
| -N | Show only keys that have notes, as key and note |
| -a | With -N, also show the command for keys without a note |
| -1 | Show only the first matching key |
| -P prefix-string | Print prefix-string before each key |
Examples
List all key bindings
tmux list-keysFind prefix-related bindings
tmux lsk | grep prefixList vi copy mode bindings
tmux lsk -T copy-mode-viShow what Prefix + c does.
tmux list-keys -T prefix cPrint tmux's default prefix bindings, ignoring your config, using a temporary server.
tmux -L defaults -f /dev/null new -d \; list-keys -T prefix \; kill-serverDefault Keybinding
Prefix + ? (all keys), Prefix + / (describe one key)
Default prefix is Ctrl+b
Common Mistakes
- The full list is long. Pipe it through less or grep, or narrow it down with -T and a key.
- Plugins and your config add bindings too, so the list shows your real setup, not the defaults. Start tmux with -f /dev/null on a separate socket to see the defaults.
- Keys in the root table fire without the prefix and take that key away from your programs. Check the root table if a key stopped working in vim or your shell.
Pro Tips
- •Prefix + ? shows bindings in a scrollable view
- •Use grep to find specific bindings
Related Commands
unbind-key