tmux is a terminal multiplexer, a re-write of GNU Screen.


Tmux is hosted on Sourceforge at

A public mirror of the git repository can be found at git://

Quick Reference

The default prefix keybinging is C-b but will be referred to as <pref>.

  • <pref> d Detach current client
  • <pref> ? List all keybindings


added:2016-09-01 09:30

Normally, I hate bothering about colors and would prefer to just use a theme that somebody with better taste has come up with. Changing the coler of the status bar at the bottom of Tmux can help tell the difference between hosts or sessions at a glance.

Run these using the command mode inside Tmux (<pref> :)

  • set status-bg <color>
  • set status-fg <color>


  • <pref> c Create new window
  • <pref> l Move to previously selected window
  • <pref> n Move to the next window
  • <pref> p Move to the previous window
  • <pref> <num> Move to the <num>‘th window
  • <pref> <name> Move to the named window (partial name completion)
  • <pref> w List all windows
  • <pref> & Kill the current window
  • <pref> , Rename the current window


  • <pref> % Split the current window into two horizontal panes
  • <pref> " Split the current window into two vertical panes
  • <pref> q Show pane numbers (used to switch between panes)
  • <pref> o Move to the next pane
  • <pref> { Move current pane left
  • <pref> } Move current pane right
  • <pref> space Cycle through default pane layouts

Copy Mode

In the default mode you are prevented from scrolling the terminal to see the history. By entering <pref> [ you enter copy-mode. While in copy mode you can move around using the same keybindings as vi (if vi mode is enabled, otherwise emacs).

To copy some text, start the selection with spacebar, move to the end and press enter to copy to tmux’s past buffer. Then you can paste the text with <pref> ].


While in copy-mode Enter will exit back to normal mode.

" "