Tmux Cheat Sheet & Quick Reference

Sessions

Start a new session

Start a new session with the name mysession

kill/delete session mysession

kill/delete all sessions but the current

kill/delete all sessions but mysession

Rename session

Detach from session

Detach others on the session (Maximize window by detach other clients)

Show all sessions

Attach to last session

Attach to a session with the name mysession

Move to previous session

Move to next session

Windows

start a new session with the name mysession and window mywindow

Create window

Rename current window

Close current window

Previous window

Next window

Switch/select window by number

Reorder window, swap window number 2(src) and 1(dst)

Move current window to the left by one position

Panes

Toggle last active pane

Split pane horizontally

Split pane vertically

Move the current pane left

Move the current pane right

Toggle synchronize-panes(send command to all panes)

Toggle between pane layouts

Switch to next pane

Show pane numbers

Switch/select pane by number

Toggle pane zoom

Convert pane into a window

Resize current pane height(holding second key is optional)

Resize current pane width(holding second key is optional)

Close current pane

Copy Mode

use vi keys in buffer

Enter copy mode

Enter copy mode and scroll one page up

Quit mode

Go to top line

Go to bottom line

Move cursor left

Move cursor down

Move cursor up

Move cursor right

Move cursor forward one word at a time

Move cursor backward one word at a time

Search forward

Search backward

Next keyword occurance

Previous keyword occurance

Start selection

Clear selection

Copy selection

Paste contents of buffer_0

display buffer_0 contents

copy entire visible contents of pane to a buffer

Show all buffers

Show all buffers and paste selected

Save buffer contents to buf.txt

delete buffer_1

Misc

Enter command mode

Set OPTION for all sessions

Set OPTION for all windows

Enable mouse mode

Help

List key bindings(shortcuts)

Show every session, window, pane, etc...

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode