Skip to content

Instantly share code, notes, and snippets.

@dipaktelangre
Created May 29, 2013 17:56
Show Gist options
  • Select an option

  • Save dipaktelangre/5672299 to your computer and use it in GitHub Desktop.

Select an option

Save dipaktelangre/5672299 to your computer and use it in GitHub Desktop.

Prefix all commands with Ctrl-b

Command                                 Action

c	                      Create a new window
n	                      Change to next window
p	                      Change to previous window
"	                      Split pane horizontally
%	                      Split pane vertically
,	                      Rename current window
o	                      Move to next pane
$                         Rename session
d                         Detach the current session
:                         command prompt (this can be done later: new -s session2 -n s2win1)
l                         Move to the previously selected window
w                         List all windows / window numbers
<window number>           Move to the specified window number, the default bindings are from 0 – 9
q                         Show pane numbers, when the numbers show up type the key to goto that pane
f <window name>           Search for window name
w                         Select from interactive list of windows
?                         help

Commands

$ tmux ls # lists sessions
$ tmux a -t session1 # re-attach session 1

References:

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