Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As we all know tmux is quite nice tool, but there are some scenarios that Ctrl+B cannot be used.

For example, when I sshd to server A and now I connect to A's tmux pty. So Ctrl+B is captured by server A.

Then I ssh to server B from server A and tmux is already running on Server B. This time, Ctrl+B only works for server A and cannot be used by server B. So, if I want to switch window for server B, what should I do then?

share|improve this question

1 Answer 1

You can still use Ctrl-b, but you need to repeat it to send to the nested tmux.

A better option would be to use different prefixes. For example the nested tmux could have:

set-option -g prefix C-a

in its tmux.conf, then Ctrl-a will be its prefix.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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