Tmux is a great tool to increase productivity in a unix shell environment. Tmux or Terminal multiplexer allows you to use multiple sessions, windows, panes and more. Unfortunately, remembering all the commands can be a bit difficult for a beginner. Below is a quick reference from the book Tmux: Productive Mouse-Free Development
For Future Reference
tmux new-sessionCreates a new session without a name. Can be shortened to
tmux newor simply
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
Detaches from the session, leaving the session running in the background.
Enters Command mode.
Creates a new window from within an existing tmux session. Shortcut for new-window.
Selects windows by number.
Displays a selectable list of windows in the current session.
Displays a prompt to rename a window.
Closes the current window after prompting for confirmation.
Divides the current window in half vertically.
Divides the current window in half horizontally.
Cycles through open panes.
Momentarily displays pane numbers in each pane.
Closes the current pane after prompting for confirmation.
Cycles through the various pane layouts.