# Tmux - The Terminal Multiplexer _Lets you run multiple 'terminals' within your terminal through:_ * Multiple __windows__ - A _window_ takes up the whole space of your terminal, (Think of it like a tab in a browser) * Multiple __panes__ - A _pane_ takes up a sub-division of a window Both panes and windows open in the same directory you're already in ### To start: ```$ tmux``` ### To do useful things press `Ctrl-B` followed by... (not at the same time as) |

__Key__

|

__Action__

| Notes | |---|---|---| |

__Panes__

| | ```"``` | Split into panes horizontally | | ```%``` | Split into panes vertically | | ```!``` | Turn a pane into it's own window | | ```x``` | Create window | | `[` | Enable scrolling (use arrow keys or Pg-Up, Pg-Down) | Press `q` to exit | | Arrow keys | switch to different panes | | Alt-Arrow keys | resize panes | |

__Windows__

| | ```c``` | Create window | | ```&``` | Kill window | |```,```| Name current window | |```n```| Next window | |`l`| Last window | | `0`-`9` | Select a window by index | ### What if you want to send `Ctrl-B` through to the thing you're running inside a window / pane? Just press it twice