Skip to content

Instantly share code, notes, and snippets.

@stantronic
Last active June 29, 2018 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stantronic/98378dc545bcd3d838b39fb52c561b5c to your computer and use it in GitHub Desktop.
Save stantronic/98378dc545bcd3d838b39fb52c561b5c to your computer and use it in GitHub Desktop.
My Personal Tmux Cheat Sheet

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment