For Future Reference

Creating Sessions

CommandDescription

tmux new-session

Creates a new session without a name. Can be shortened to tmux new or simply tmux.

tmux new -s development

Creates a new session called “development.”

tmux new -s development -n editor

Creates a session named “development” and names the first window “editor.”

tmux attach -t development

Attaches to a session named “development.”

Default Commands for Sessions, Windows, and Panes

CommandDescription

Prefix d

Detaches from the session, leaving the session running in the background.

Prefix :

Enters Command mode.

Prefix c

Creates a new window from within an existing tmux session. Shortcut for new-window.

Prefix n

Moves to the next window.

Prefix p

Moves to the previous ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.