tmux commands
Updated 2026-02-15
tmux sessions, windows, and panes. Detach, reattach, and split terminals for remote work.
Sessions
tmuxNew session.
tmux new -s nameNamed session.
Ctrl+b dDetach.
tmux attach -t nameAttach to session.
tmux lsList sessions.
Windows and panes
Ctrl+b cNew window.
Ctrl+b n / pNext / previous window.
Ctrl+b %Split vertical.
Ctrl+b "Split horizontal.
Ctrl+b arrowSwitch pane.
Ctrl+b xClose pane.