Show Menu
Cheatography

tmux Cheat Sheet Cheat Sheet (DRAFT) by

tmux commands most used

This is a draft cheat sheet. It is a work in progress and is not finished yet.

CLI Comands

tmux (new-s­ession)
Start a new session
tmux new -s mysession
Start a new session with the name mysession
tmux kill-s­ession -t mysession
kill/d­elete session mysession
tmux kill-s­ession -a
kill/d­elete all sessions but the current
tmux kill-s­ession -a -t mysession
kill/d­elete all sessions but mysession
tmux ls
Show all sessions
tmux a(ttac­h-s­ession)
Attach to last session
tmux a(ttac­h-s­ession) -t mysession
Attach to a session with the name mysession

: In tmux Session Commands

:new
Start a new session
:new -s mysession
Start a new session with the name mysession
:kill-­session
kill/d­elete the current session
:attach -d
Detach others on the session (Maximize window by detach other clients)

Others

Ctrl + A + ?
Show Key Bindings
Ctrl + A + :
Enter Command Mode
 

Key Mappings Windows

Ctrl + A
Escape Sequence
Ctrl + A + $
Rename session
Ctrl + A + d
Detach from session
Ctrl + A + w
Session and Window Preview
Ctrl + A + (
Move to previous session
Ctrl + A + )
Move to next session
Ctrl + A + c
Create window
Ctrl + A + ,
Rename current window
Ctrl + A + &
Close current window
Ctrl + A + w
List windows
Ctrl + A + p
Previous window
Ctrl + A + n
Next window
Ctrl + A + 0...9
Switch­/select window by number

Key Mappings Panes

Ctrl + A + ;
Toggle last active pane
Ctrl + A + %
Split the current pane with a vertical line to create a horizontal layout
Ctrl + A + "
Split the current with a horizontal line to create a vertical layout
Ctrl + A + {
Move the current pane left
Ctrl + A + }
Move the current pane right
Ctrl + A + (Up/Do­wn/­Lef­t/R­ight)
Switch Pane to direction
Ctrl + A + Space
Toggle between pane layouts
Ctrl + A + o
Switch to next pane
Ctrl + A + q
Show pane numbers
Ctrl + A + q 0...9
Switch­/select pane by number
Ctrl + A + z
Pane Zoom In/Out
Ctrl + A + !
Pane to Window
Ctrl + A + Alt (Up/Do­wn/­Lef­t/R­ight)
Resize current pane (while holding alt)
Ctrl + A + x
Close Current Pane