Ctrl-b + c, %, n, w, etc not working in tmux console
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?
Release the C-b before press the other commands
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.
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.
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.