I have sets many shortcuts in .bashrc profile of local user, and they work properly. Currently on my 12.04 system but when ever I tried to used them in tmux, I always get the same response command not found. Is their any extra files which I have to edit for those shortcuts to work on tmux ?


A user-specific configuration file should be located at ~/.tmux.conf, while a global configuration file should be located at /etc/tmux.conf. Default configuration files can be found in /usr/share/tmux/.

Edit the ~/.tmux.conf file to include whatever shortcuts you want on tmux

Key bindings may be changed with the bind and unbind commands in tmux.conf.

For example, you can change the prefix key (i.e. Ctrl-b) to Ctrl-a by adding the following commands in your ~/.tmux.conf configuration file:

unbind C-b
set -g prefix C-a
bind a send-prefix

Another example:

To use PgUp and PgDown, to switch windows in tmux:

bind -n PageUp previous-window
bind -n PageDown next-window

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.