TMUX Complete Cheatsheet
Session Commands Command / Shortcut Description tmux Start a new session. tmux new -s [name] Create new session. tmux attach Attach to latest session. tmux detach Detach session. tmux a -t [name]…

ON THIS PAGE
Session Commands
| Command / Shortcut | Description |
|---|---|
| tmux | Start a new session. |
| tmux new -s [name] | Create new session. |
| tmux attach | Attach to latest session. |
| tmux detach | Detach session. |
| tmux a -t [name] | Attach specific session. |
| tmux ls | List sessions. |
| tmux kill-session -t [name] | Kill session. |
Window Shortcuts (CTRL+b)
| Command / Shortcut | Description |
|---|---|
| c | Create window. |
| , | Rename window. |
| w | List windows. |
| & | Kill window. |
| n / p | Next / Previous window. |
| 0..9 | Switch window. |
Pane Shortcuts (CTRL+b)
| Command / Shortcut | Description |
|---|---|
| % | Vertical split. |
| “ | Horizontal split. |
| x | Close pane. |
| o | Switch panes. |
| z | Zoom pane. |
| { / } | Move pane left/right. |
| SPACE | Cycle layouts. |
Copy Mode
| Command / Shortcut | Description |
|---|---|
| [ | Enter copy mode. |
| ] | Paste. |
| SPACE | Start selection. |
| ENTER | Copy selection. |
| q / ESC | Exit copy mode. |
| PgUp/PgDn | Scroll pages. |
Terminal-Type Commands
| Command / Shortcut | Description |
|---|---|
| tmux setw synchronize-panes on | Enable broadcast (same input to all panes). |
| tmux setw synchronize-panes off | Disable broadcast. |
| tmux set -g mouse on | Enable mouse mode. |
| tmux set -g history-limit 10000 | Increase scrollback. |
| tmux source-file ~/.tmux.conf | Reload config. |
Keep reading
- LVM in linux
Problems with standard partation There are some problems when working with hard disks and standard aprtiations. Consider a system with a small and a large hard disk drive, partioned. Suppose the…
- Apache web server
The Apache HTTP server, commonly known as Apache is a free and open-source web server, that delivers web content through the internet. As open-source software, its original source code is freely…
- Shell Scripting
It is a way to automate tasks by writing a series of commands in a text file called script that Linux shell can execute. It’s like creating a ‘to do list’ for your computer to follow step by step…