Cheatography
https://cheatography.com
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-session -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 interactive |
$PREFIX + w |
Pane Management
Horizontally split the window |
tmux split-window -h |
Horizontally 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.
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets