Show Menu
Cheatography

Commands and keyboard shortcuts for using tmux on Linux

Session Management

Create a new session
tmux new -s NAME
Attach to the most recently unattached session
tmux attach
Attach a particular session
tmux attach -t NAME
List open sessions
tmux ls
Kill a session
tmux kill-s­ession -t NAME
Detach from session
$PREFIX + d
Rename current session
$PREFIX + $
$PREFIX is
Ctrl + b
. Simply hold the Ctrl key down and press the b key. Then release the Ctrl key and type the next character.

Window / Tab management

Create a new window
$PREFIX + c
Move to next window
$PREFIX + n
Move to previous window
$PREFIX + p
Rename window
$PREFIX + , (Comma)
Move to a particular window by id
$PREFIX + id (Starting form 0)
Move to a particular window intera­ctive
$PREFIX + w

Pane Management

Horizo­ntally split the window
tmux split-­window -h
Horizo­ntally split the window
$PREFIX + %
Vertically split the window
tmux split-­window -v
Vertically split the window
$PREFIX + "
Zoom into/out of a pane
$PREFIX + z
Convert pane to window
$PREFIX + !
Change between panes
$PREFIX + Arrow Keys
Resize pane
($PREFIX + Arrow Keys)
To resize pane do not release Ctrl after pressing b. Hold it down and use arrow keys.
   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          EQ tips Cheat Sheet
          AngularJS Cheat Sheet
          Tmux Cheat Sheet