Skip to main content
Browse referenceAll guides
Back to Commands
MiscellaneousPrefix + ?

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

bash
tmux list-keys [-1aNr] [-F format] [-O order] [-P prefix-string] [-T key-table] [key]

Options

FlagDescription
-T key-tableShow only bindings in specified table
-NShow only keys that have notes, as key and note
-aWith -N, also show the command for keys without a note
-1Show only the first matching key
-P prefix-stringPrint prefix-string before each key

Examples

List all key bindings

bash
tmux list-keys

Find prefix-related bindings

bash
tmux lsk | grep prefix

List vi copy mode bindings

bash
tmux lsk -T copy-mode-vi

Show what Prefix + c does.

bash
tmux list-keys -T prefix c

Print tmux's default prefix bindings, ignoring your config, using a temporary server.

bash
tmux -L defaults -f /dev/null new -d \; list-keys -T prefix \; kill-server

Default 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
bind-keyunbind-key