---
title: "tmux prefix"
description: "https://youtu.be/BMkpbfhbkKM"
date: 2021-07-18
published: true
tags:
  - cli
  - linux
  - tmux
template: blog-post
---


[https://youtu.be/BMkpbfhbkKM](https://youtu.be/BMkpbfhbkKM){.youtube-embed}

The prefix key is an essential part of tmux, by default all of tmux's
key-bindings sit behind a prefix.  This prefix is very similar to vim's leader
key. It is common for folks to change the default `C-b` (control b) to `C-a` or
if they are a vim user something to match their vim leader key.

``` bash
set -g prefix C-Space
bind Space send-prefix
```

A few of the essential default key-bindings.

```
%      vertical split
"      horizontal split
d      detach

up     select up one pane
down   select down one pane
right  select right one pane
left   select left one pane

t      clock
o      swap panes
c      create window
n      next window
p      previous window
```

A more complete list of key-bindings can be found in this gist <https://gist.github.com/mzmonsour/8791835>.

<a href="/tmux-nav-2021/" class="wikilink" data-title="How I navigate tmux in 2021" data-description="change_speed = (speed) =&gt; [...document.querySelectorAll(&#39;video&#39;)].map(v =&gt; v.playbackRate=v.playbackRate+speed)" data-date="2021-05-11">How I navigate tmux in 2021</a>

> for more information on how I navigate tmux, check out this full post
