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).
Command | Explanation |
tmux ls | List active sessions. |
tmux new -s example | Create and connect to “example” session. |
prefix d | Detach from the session. |
tmux attach -t example | Attach to “example” session. |
tmux kill-session -t example | Kill “example” session |
prefix esc | Enter copy mode. |
prefix c | Create window. |
prefix n | Switch to the next window. |
prefix p | Switch to the previous window. |
prefix & | Close the current window. |
prefix % | Split pane vertically. |
prefix “ | Split pane horizontally. |
prefix l | Switch pane (h, j, k, or l). |
prefix x | Close the current pane. |
Leave a Reply