Holding Ctrl and B followed by another command key usually gives me nothing.  I have no .conf file so I'm not overwriting it.


This is what I use for my configuration and I have Ctrl+A as prefix key.

set -g prefix ^a
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
unbind %
bind | split-window -h
bind - split-window -v
bind N break-pane
# Set status bar
set -g status-bg black
set -g status-fg white
# Highlight active window
set-window-option -g window-status-current-bg blue

# Set window notifications
setw -g monitor-activity on
set -g visual-activity on

# Automatically set window title
setw -g automatic-rename

Test it by pressing Ctrl+A, then after that ?.

  • nope nothing. maybe tmux is looking for the wrong file. my tmux.conf is in my home directory and is hidden. – n0pe Apr 6 '11 at 13:42
  • 2
    tmux -f ~/.tmux.conf – Abhijeet Rastogi Apr 6 '11 at 18:26
  • 28
    May be your terminal or DE also has the same shortcut. However, I hope you are not just pressing Ctrl+A. Basically, you have to press Ctrl+A and then release keys, then press "?" or any command. – Abhijeet Rastogi Apr 6 '11 at 18:38
  • 11
    Ah. Well now I feel like an idiot. Yup that was it, I didn't know you had to release keys. Wow, I need sleep :) Thanks for helping! – n0pe Apr 6 '11 at 18:46
  • 1
    This is all about time... first time i also wonder why the hell its not working... you won't believe, i literally type this on terminal ctrl+b kinda funny... but this post clear doubt.. Just hit ctrl+b and right after that hit next key, that will be your command, c, n, p etc... cool trick – Satish Feb 17 '16 at 19:53

I think this deserves a clear visible answer which is hidden in form of a comment under the first answer.

Assuming the default tmux configuration is being used, novice tmux users please follow the instructions below to split the pane

To split the pane horizontally

  1. Press Ctrl+B
  2. Release pressed keys in Step 1
  3. Press "  (on many keyboards, this is Shift+')

To split the pane vertically

  1. Press Ctrl+B
  2. Release pressed keys in Step 1
  3. Press %  (on many keyboards, this is Shift+5)

The articles I found and referenced below mention [CTRL B] + [%] or [CTRL B] + ["] or Ctrl+b " which implies that we have to press all the keys together but none mentions the important part of releasing the pressed Ctrl + whatever key before pressing the another key in sequence in the command to see the desired action.

  • 6
    This question has nothing to do with splitting panes. Why have you answered with these examples? – byxor Aug 9 '17 at 15:49
  • 6
    Release pressed keys in Step 1 -> This is what I was missing. Thanks! – bholagabbar May 22 '19 at 13:54
  • @byxor this question has precisely to do with splitting panes. The answer is works for me. – Jepper Sep 7 '19 at 16:33

You can type the command tmux detach to detach from the session. type tmux list-sessions to get a list of active sessions tmux list-sessions 0: 1 windows (created Wed Feb 21 12:53:31 2018) [157x75] 1: 1 windows (created Wed Feb 21 12:55:05 2018) [157x75] tmux attach-session -t will attach you to the session Example: tmux attach-session -t 0


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.