Skip to content

Instantly share code, notes, and snippets.

@tsamaya
Created February 23, 2018 10:51
Show Gist options
  • Save tsamaya/d65c07224028bb2ab5e994479e69a8d9 to your computer and use it in GitHub Desktop.
Save tsamaya/d65c07224028bb2ab5e994479e69a8d9 to your computer and use it in GitHub Desktop.

tmux cheatsheet

running tmux

start new with session name:

tmux new -s myname

attach:

tmux a  #  (or at, or attach)

attach to named:

tmux a -t myname

list sessions:

tmux ls

kill session:

tmux kill-session -t myname

using tmux

ctrl + b and

Sessions

:new<CR>  new session
s  list sessions
$  name session

Panes (splits)

%  horizontal split
"  vertical split

o  swap panes
q  show pane numbers
x  kill pane
⍽  space - toggle between layouts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment