Skip to content

Instantly share code, notes, and snippets.

@zhangxu
Last active October 27, 2017 10:09
Show Gist options
  • Save zhangxu/11244891 to your computer and use it in GitHub Desktop.
Save zhangxu/11244891 to your computer and use it in GitHub Desktop.
Tmux usage
default prefix: Ctrl+b
start new session: tmux
list sessions: tmux ls
attach to session: tmux attach [-t <session>]
attach to session forcely: tmux attach -d
detach: prefix then d
Windows:
new window: prefix then c
next/previous window: prefix then n/p
list windows: prefix then w
Panes:
new pane: prefix then " (h) / % (v)
iterate through panes: prefix then o
switch pane location: prefix then Ctrl + o
Copy & Paste
start copy mode: prefix then [
start copy: ctrl + space
copy: alt + w
paste: prefix then ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment