tmux notes

tmux cheatsheet

Session Management

CommandDescription
tmux new -s <name>Create a new named session
tmux lsList sessions
tmux aAttach to last session
tmux attach -t <name>Attach to a session
tmux kill-session -t <name>Kill a session

Window Management

CommandDescription
<prefix> cCreate a new window
<prefix> ,Rename current window
<prefix> nMove to next window
<prefix> pMove to previous window
<prefix> <number>Switch to window by number
<prefix> &Kill current window

Pane Management

CommandDescription
<prefix> %Split pane vertically
<prefix> "Split pane horizontally
<prefix> oSwitch to next pane
<prefix> ;Toggle between last active panes
<prefix> xKill current pane
<prefix> spaceToggle between pane layouts

Misc Commands

CommandDescription
<prefix> dDetach from session
<prefix> [Enter copy mode
<prefix> ]Paste from buffer
<prefix> :Enter command mode

Note: The default prefix key is Ctrl+b