Tmux Cheat Sheet

A Software › Screen cheat sheet in English by mahyard

Commands and keyboard shortcuts for using tmux on Linux

5,031 views 832 downloads 28 Feb 2024 History

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.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.