tmux Cheat Sheet
tmux is a simple, powerful tool. But new users may find its interface confusing. Download A Cloud Guru's cheat sheet of commands and shortcuts for tmux!
Jun 08, 2023 • 3 Minute Read
tmux
is a powerful, simple tool to create, access, and control multiple terminals from a single screen. But new users may feel that tmux
’s interface is a struggle to wrap their heads around.
Fear not! ACG has you covered with a handy cheat sheet of commands and shortcuts for tmux
.
What is tmux? What are the benefits of using tmux?
tmux
is an open-source terminal multiplexer that allows users to run multiple virtual terminals inside a single window. It can be detached from a screen to run in the background and reattached later.
tmux
provides users with a series of command line, interactive, and vi-like commands to navigate through their virtual terminals with ease. But new users may find tmux
‘s interface confusing or hard to grasp. To help, check out this cheat sheet for tmux
.
Click above to view the full-size graphic! Get a printer-friendly version with black text and a white background here!
Get the Cloud Dictionary of Pain
Speaking cloud doesn’t have to be hard. We analyzed millions of responses to ID the top concepts that trip people up. Grab this cloud guide for succinct definitions of some of the most painful cloud terms.
Tmux cheat sheet
tmux sessions
_ new sessions |
---|
tmux |
tmux new |
tmux new-session |
tmux new -s sessionname |
_ attach sessions |
---|
tmux a |
tmux att |
tmux attach |
tmux attach-session |
tmux a -t sessionname |
_ remove sessions |
---|
tmux kill-ses |
tmux kill-session -t sessionname |
_ key bindings | |
---|---|
CTRL + B $ | rename session |
CTRL + B D | detach session |
CTRL + B ) | next session |
CTRL + B ( | previous session |
tmux windows
_ windows are like tabs in a browser. Windows exist in sessions and occupy the space of a session screen.
_ key bindings | |
---|---|
CTRL + B C | create window |
CTRL + B N | move to next window |
CTRL + B P | move to previous window |
CTRL + B L | move to window last used |
CTRL + B 0 … 9 | select window by number |
CTRL + B ‘ | select window by name |
CTRL + B . | change window number |
CTRL + B , | rename window |
CTRL + B F | search windows |
CTRL + B & | kill window |
CTRL + B W | list windows |
tmux panes
_ panes are sections of windows that have been split into different screens — just like the panes of a real window!
_ key bindings | |
---|---|
CTRL + B % | vertical split |
CTRL + B “ | horizontal split |
CTRL + B → | move to pane to the right |
CTRL + B ← | move to pane to the left |
CTRL + B ↑ | move up to pane |
CTRL + B ↓ | move down to pane |
CTRL + B O | go to next pane |
CTRL + B ; | go to last active pane |
CTRL + B } | move pane right |
CTRL + B { | move pane left |
CTRL + B ! | convent pane to window |
CTRL + B X | kill pane |
tmux copy mode
_ key bindings | |
---|---|
CTRL + B [ | enter copy mode |
CTRL + B ] | paste from buffer |
_ copy mode commands | |
---|---|
space | start selection |
enter | copy selection |
esc | clear selection |
g | go to top |
G | go to bottom |
h | move cursor left |
j | move cursor down |
k | move cursor up |
l | move cursor right |
/ | search |
# | list paste buffers |
q | quit |
The cheat sheet for your cloud career.
Master modern tech skills, get certified, and level up your career. Whether you’re starting out or a seasoned pro, learn by doing with ACG.