Essential Tmux commands

Tmux is a terminal multiplexer and I can’t imagine working in a terminal without it. Here is a list of commands I most frequently use. Please note that the “prefix” will depend on your Tmux dotfiles (the default is ctrl+b).

CommandExplanation
tmux lsList active sessions.
tmux new -s exampleCreate and connect to “example” session.
prefix dDetach from the session.
tmux attach -t exampleAttach to “example” session.
tmux kill-session -t exampleKill “example” session
prefix escEnter copy mode.
prefix cCreate window.
prefix nSwitch to the next window.
prefix pSwitch to the previous window.
prefix &Close the current window.
prefix %Split pane vertically.
prefix “Split pane horizontally.
prefix lSwitch pane (h, j, k, or l).
prefix xClose the current pane.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *