13

I installed tmux using sudo apt-get install tmux on my Ubuntu 16.04 system.

I tried running tmux by simply typing tmux in terminal.That went on fine. But none of the functions like "creating new window Ctrl-b + c" , "list windows Ctrl-b + w ", "split window into two Ctrl-b + % " seems to work. I get no response

What should I do?

24

Release the C-b before press the other commands

3
  • 2
    What the actual fu*k. It was this thing! Good call. Thanks. – MarkSkayff Mar 30 '18 at 23:43
  • I made an account just to say thank you. This is a game-changer. – Jerfov2 Jan 13 '20 at 18:34
  • I now suddenly have this problem. I suspect something is intercepting Ctrl-B. I've been a long time user of tmux, I know to release the C-b before I press the next key. I just got many updates. FWIW I'm using KDE Plasma. – Johan Apr 15 '20 at 12:51
4

If the tmux shortcuts don't work you need to start by typing the commands mannually.

tmux new-window, tmux split-window and see if those work.

If they do, you need to check on the mannual pages man tmux and see if tmux new-window and all other command's shortcut you are trying to use are bound as you think they are in section KEY BINDINGS.

In the KEY BINDINGS section look for the prefix key and other shortcuts which you are trying to accomplish if they are defined with the keys you are pressing.

Not really sure about Ubuntu repositories but it's better if you install the latest version of tmux from their github repo yes means building from source.

After a quick search i found out that version: 2.2 of tmux that ships with ubuntu 16.04 is buggy so i think you should update from source to latest as they suggest.

Your tmux -V (for version) matters sometimes so updating to the latest can prevent most problems.

0

I have been facing this problem and it was really pain, eventually I found out that I have to press ctrl+b and release it and then press the other key.

for example, to create a new terminal hold ctrl+b and release it then press shift+5 (%)

Do this for other fuctions.

0

One possible cause for this could be the server at an incompatibly higher version than the client. And therefore, if you manage to go out of the tmux windows, you'll be greeted with server version is too old for client. The only solve for this could be not detaching from the tmux server, and using a tool like https://github.com/tmux-plugins/tmux-resurrect.

To go ahead using tmux next, run tmux kill-server and restore them by again running another.

0

I have been facing this problem and it was really pain. Eventually, I found out that I have to press Ctrl+B, release it and then press the other key.

For example, to create a new terminal hold Ctrl+B, release it and then press Shift+5 (%).

Do this for other functions.

0

If it's not a keymap problem, it could be caused by a default shell.

In my case, I just removed zsh by accident, then C+b or C+" are not working even the current window shell works.

It is not easy to find out for me.

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.