ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.1 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://tmuxcheatsheet.com/ |
| Last Crawled | 2026-04-15 16:42:45 (2 days ago) |
| First Indexed | 2016-10-26 09:03:58 (9 years ago) |
| HTTP Status Code | 200 |
| Meta Title | Tmux Cheat Sheet & Quick Reference | Session, window, pane and more |
| Meta Description | Master tmux with the comprehensive cheat sheet: session management, examples, installation guide and more for the ultimate terminal multiplexer. |
| Meta Canonical | null |
| Boilerpipe Text | Sessions
$
tmux
$
tmux new
$
tmux new-session
:
new
Start a new session
$
tmux new-session -A -s mysession
Start a new session or attach to an existing session named
mysession
$
tmux new -s mysession
:
new -s mysession
Start a new session with the name
mysession
:
kill-session
kill/delete the current session
$
tmux kill-ses -t mysession
$
tmux kill-session -t mysession
kill/delete session
mysession
$
tmux kill-session -a
kill/delete all sessions but the current
$
tmux kill-session -a -t mysession
kill/delete all sessions but
mysession
Ctrl
+
b
$
Rename session
Ctrl
+
b
d
Detach from session
:
attach -d
Detach others on the session (Maximize window by detach other clients)
$
tmux ls
$
tmux list-sessions
Ctrl
+
b
s
Show all sessions
$
tmux a
$
tmux at
$
tmux attach
$
tmux attach-session
Attach to last session
$
tmux a -t mysession
$
tmux at -t mysession
$
tmux attach -t mysession
$
tmux attach-session -t mysession
Attach to a session with the name
mysession
Ctrl
+
b
w
Session and Window Preview
Ctrl
+
b
(
Move to previous session
Ctrl
+
b
)
Move to next session
Windows
$
tmux new -s mysession -n mywindow
start a new session with the name
mysession
and window
mywindow
Ctrl
+
b
c
Create window
Ctrl
+
b
,
Rename current window
Ctrl
+
b
&
Close current window
Ctrl
+
b
w
List windows
Ctrl
+
b
p
Previous window
Ctrl
+
b
n
Next window
Ctrl
+
b
0
...
9
Switch/select window by number
Ctrl
+
b
l
Toggle last active window
:
swap-window -s 2 -t 1
Reorder window, swap window number 2(src) and 1(dst)
:
swap-window -t -1
Move current window to the left by one position
:
move-window -s src_ses:win -t target_ses:win
:
movew -s foo:0 -t bar:9
:
movew -s 0:0 -t 1:9
Move window from source to target
:
move-window -s src_session:src_window
:
movew -s 0:9
Reposition window in the current session
:
move-window -r
:
movew -r
Renumber windows to remove gap in the sequence
Panes
Ctrl
+
b
;
Toggle last active pane
:
split-window -h
Ctrl
+
b
%
Split the current pane with a vertical line to create a horizontal layout
:
split-window -v
Ctrl
+
b
"
Split the current with a horizontal line to create a vertical layout
:
join-pane -s 2 -t 1
Join two windows as panes (Merge window 2 to window 1 as panes)
:
join-pane -s 2.1 -t 1.0
Move pane from one window to another (Move pane 1 from window 2 to pane after 0 of window 1)
Ctrl
+
b
{
Move the current pane left
Ctrl
+
b
}
Move the current pane right
Ctrl
+
b
Ctrl
+
b
Ctrl
+
b
Ctrl
+
b
Switch to pane to the direction
:
setw synchronize-panes
Toggle synchronize-panes(send command to all panes)
Ctrl
+
b
Spacebar
Toggle between pane layouts
Ctrl
+
b
o
Switch to next pane
Ctrl
+
b
q
Show pane numbers
Ctrl
+
b
q
0
...
9
Switch/select pane by number
Ctrl
+
b
z
Toggle pane zoom
Ctrl
+
b
!
Convert pane into a window
Ctrl
+
b
+
Ctrl
+
b
Ctrl
+
Ctrl
+
b
+
Ctrl
+
b
Ctrl
+
Resize current pane height(holding second key is optional)
Ctrl
+
b
+
Ctrl
+
b
Ctrl
+
Ctrl
+
b
+
Ctrl
+
b
Ctrl
+
Resize current pane width(holding second key is optional)
Ctrl
+
b
x
Close current pane
Copy Mode
:
setw -g mode-keys vi
use vi keys in buffer
Ctrl
+
b
[
Enter copy mode
Ctrl
+
b
PgUp
Enter copy mode and scroll one page up
q
Quit mode
g
Go to top line
G
Go to bottom line
Scroll up
Scroll down
h
Move cursor left
j
Move cursor down
k
Move cursor up
l
Move cursor right
w
Move cursor forward one word at a time
b
Move cursor backward one word at a time
/
Search forward
?
Search backward
n
Next keyword occurance
N
Previous keyword occurance
Spacebar
Start selection
Esc
Clear selection
Enter
Copy selection
Ctrl
+
b
]
Paste contents of buffer_0
:
show-buffer
display buffer_0 contents
:
capture-pane
copy entire visible contents of pane to a buffer
:
list-buffers
Show all buffers
:
choose-buffer
Show all buffers and paste selected
:
save-buffer buf.txt
Save buffer contents to
buf.txt
:
delete-buffer -b 1
delete buffer_1
Misc
Ctrl
+
b
:
Enter command mode
:
set -g OPTION
Set OPTION for all sessions
:
setw -g OPTION
Set OPTION for all windows
:
set mouse on
Enable mouse mode
Help
$
tmux list-keys
:
list-keys
Ctrl
+
b
?
List key bindings(shortcuts)
$
tmux info
Show every session, window, pane, etc... |
| Markdown | Toggle navigation
- [Home](https://tmuxcheatsheet.com/)
- [Install Tmux](https://tmuxcheatsheet.com/how-to-install-tmux/)
- [Theming & Customizing](https://tmuxcheatsheet.com/theming-and-customizing/)
- [OpenClaw + Tmux](https://tmuxcheatsheet.com/openclaw-tmux-setup/)
- [Plugins & Tools](https://tmuxcheatsheet.com/tmux-plugins-tools/)
- [Claude Code](https://tmuxcheatsheet.com/claude-code-cheat-sheet/)
Ctrl+b
English
- [English](https://tmuxcheatsheet.com/)
- [Deutsch](https://tmuxcheatsheet.com/de/)
- [中文](https://tmuxcheatsheet.com/zh/)
- [Français](https://tmuxcheatsheet.com/fr/)
- [Español](https://tmuxcheatsheet.com/es/)
- [한국어](https://tmuxcheatsheet.com/ko/)
- [Nederlands](https://tmuxcheatsheet.com/nl/)
- [Русский](https://tmuxcheatsheet.com/ru/)
# Tmux Cheat Sheet & Quick Reference
- [facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ftmuxcheatsheet.com%2F)
- [x](https://twitter.com/intent/tweet?text=Tmux+Cheat+Sheet+%26+Quick+Reference+%7C+Session%2C+window%2C+pane+and+more+https%3A%2F%2Ftmuxcheatsheet.com%2F)
- [reddit](http://www.reddit.com/submit?url=https%3A%2F%2Ftmuxcheatsheet.com%2F&title=Tmux+Cheat+Sheet+%26+Quick+Reference+%7C+Session%2C+window%2C+pane+and+more)
- [linkedin](http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Ftmuxcheatsheet.com%2F&title=Tmux+Cheat+Sheet+%26+Quick+Reference+%7C+Session%2C+window%2C+pane+and+more)
- [tumblr](https://tumblr.com/share/link?url=https%3A%2F%2Ftmuxcheatsheet.com%2F&name=Tmux+Cheat+Sheet+%26+Quick+Reference+%7C+Session%2C+window%2C+pane+and+more)
- [Whatsapp](whatsapp://send?text=Tmux+Cheat+Sheet+%26+Quick+Reference+%7C+Session%2C+window%2C+pane+and+more+https%3A%2F%2Ftmuxcheatsheet.com%2F)
- [QRCode]()
#### Scan to Access
Ctrl\+K
## Sessions
\$ tmux
\$ tmux new
\$ tmux new-session
: new
Start a new session
\$ tmux new-session -A -s mysession
Start a new session or attach to an existing session named *mysession*
\$ tmux new -s mysession
: new -s mysession
Start a new session with the name *mysession*
: kill-session
kill/delete the current session
\$ tmux kill-ses -t mysession
\$ tmux kill-session -t mysession
kill/delete session *mysession*
\$ tmux kill-session -a
kill/delete all sessions but the current
\$ tmux kill-session -a -t mysession
kill/delete all sessions but *mysession*
`Ctrl` + `b` `$`
Rename session
`Ctrl` + `b` `d`
Detach from session
: attach -d
Detach others on the session (Maximize window by detach other clients)
\$ tmux ls
\$ tmux list-sessions
`Ctrl` + `b` `s`
Show all sessions
\$ tmux a
\$ tmux at
\$ tmux attach
\$ tmux attach-session
Attach to last session
\$ tmux a -t mysession
\$ tmux at -t mysession
\$ tmux attach -t mysession
\$ tmux attach-session -t mysession
Attach to a session with the name *mysession*
`Ctrl` + `b` `w`
Session and Window Preview
`Ctrl` + `b` `(`
Move to previous session
`Ctrl` + `b` `)`
Move to next session
## Windows
\$ tmux new -s mysession -n mywindow
start a new session with the name *mysession* and window *mywindow*
`Ctrl` + `b` `c`
Create window
`Ctrl` + `b` `,`
Rename current window
`Ctrl` + `b` `&`
Close current window
`Ctrl` + `b` `w`
List windows
`Ctrl` + `b` `p`
Previous window
`Ctrl` + `b` `n`
Next window
`Ctrl` + `b` `0` ... `9`
Switch/select window by number
`Ctrl` + `b` `l`
Toggle last active window
: swap-window -s 2 -t 1
Reorder window, swap window number 2(src) and 1(dst)
: swap-window -t -1
Move current window to the left by one position
: move-window -s src\_ses:win -t target\_ses:win
: movew -s foo:0 -t bar:9
: movew -s 0:0 -t 1:9
Move window from source to target
: move-window -s src\_session:src\_window
: movew -s 0:9
Reposition window in the current session
: move-window -r
: movew -r
Renumber windows to remove gap in the sequence
## Panes
`Ctrl` + `b` `;`
Toggle last active pane
: split-window -h
`Ctrl` + `b` `%`
Split the current pane with a vertical line to create a horizontal layout
: split-window -v
`Ctrl` + `b` `"`
Split the current with a horizontal line to create a vertical layout
: join-pane -s 2 -t 1
Join two windows as panes (Merge window 2 to window 1 as panes)
: join-pane -s 2.1 -t 1.0
Move pane from one window to another (Move pane 1 from window 2 to pane after 0 of window 1)
`Ctrl` + `b` `{`
Move the current pane left
`Ctrl` + `b` `}`
Move the current pane right
`Ctrl` + `b` ``
`Ctrl` + `b` ``
`Ctrl` + `b` ``
`Ctrl` + `b` ``
Switch to pane to the direction
: setw synchronize-panes
Toggle synchronize-panes(send command to all panes)
`Ctrl` + `b` `Spacebar`
Toggle between pane layouts
`Ctrl` + `b` `o`
Switch to next pane
`Ctrl` + `b` `q`
Show pane numbers
`Ctrl` + `b` `q` `0` ... `9`
Switch/select pane by number
`Ctrl` + `b` `z`
Toggle pane zoom
`Ctrl` + `b` `!`
Convert pane into a window
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
Resize current pane height(holding second key is optional)
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
Resize current pane width(holding second key is optional)
`Ctrl` + `b` `x`
Close current pane
## Copy Mode
: setw -g mode-keys vi
use vi keys in buffer
`Ctrl` + `b` `[`
Enter copy mode
`Ctrl` + `b` `PgUp`
Enter copy mode and scroll one page up
`q`
Quit mode
`g`
Go to top line
`G`
Go to bottom line
``
Scroll up
``
Scroll down
`h`
Move cursor left
`j`
Move cursor down
`k`
Move cursor up
`l`
Move cursor right
`w`
Move cursor forward one word at a time
`b`
Move cursor backward one word at a time
`/`
Search forward
`?`
Search backward
`n`
Next keyword occurance
`N`
Previous keyword occurance
`Spacebar`
Start selection
`Esc`
Clear selection
`Enter`
Copy selection
`Ctrl` + `b` `]`
Paste contents of buffer\_0
: show-buffer
display buffer\_0 contents
: capture-pane
copy entire visible contents of pane to a buffer
: list-buffers
Show all buffers
: choose-buffer
Show all buffers and paste selected
: save-buffer buf.txt
Save buffer contents to *buf.txt*
: delete-buffer -b 1
delete buffer\_1
## Misc
`Ctrl` + `b` `:`
Enter command mode
: set -g OPTION
Set OPTION for all sessions
: setw -g OPTION
Set OPTION for all windows
: set mouse on
Enable mouse mode
## Help
\$ tmux list-keys
: list-keys
`Ctrl` + `b` `?`
List key bindings(shortcuts)
\$ tmux info
Show every session, window, pane, etc...
©2026 Tmuxcheatsheet.com [Privacy Policy](https://tmuxcheatsheet.com/privacy/)
####
Stay in English
[Switch to {language}](https://tmuxcheatsheet.com/)
Default
Save
Cancel |
| Readable Markdown | Sessions
\$ tmux
\$ tmux new
\$ tmux new-session
: new
Start a new session
\$ tmux new-session -A -s mysession
Start a new session or attach to an existing session named *mysession*
\$ tmux new -s mysession
: new -s mysession
Start a new session with the name *mysession*
: kill-session
kill/delete the current session
\$ tmux kill-ses -t mysession
\$ tmux kill-session -t mysession
kill/delete session *mysession*
\$ tmux kill-session -a
kill/delete all sessions but the current
\$ tmux kill-session -a -t mysession
kill/delete all sessions but *mysession*
`Ctrl` + `b` `$`
Rename session
`Ctrl` + `b` `d`
Detach from session
: attach -d
Detach others on the session (Maximize window by detach other clients)
\$ tmux ls
\$ tmux list-sessions
`Ctrl` + `b` `s`
Show all sessions
\$ tmux a
\$ tmux at
\$ tmux attach
\$ tmux attach-session
Attach to last session
\$ tmux a -t mysession
\$ tmux at -t mysession
\$ tmux attach -t mysession
\$ tmux attach-session -t mysession
Attach to a session with the name *mysession*
`Ctrl` + `b` `w`
Session and Window Preview
`Ctrl` + `b` `(`
Move to previous session
`Ctrl` + `b` `)`
Move to next session
Windows
\$ tmux new -s mysession -n mywindow
start a new session with the name *mysession* and window *mywindow*
`Ctrl` + `b` `c`
Create window
`Ctrl` + `b` `,`
Rename current window
`Ctrl` + `b` `&`
Close current window
`Ctrl` + `b` `w`
List windows
`Ctrl` + `b` `p`
Previous window
`Ctrl` + `b` `n`
Next window
`Ctrl` + `b` `0` ... `9`
Switch/select window by number
`Ctrl` + `b` `l`
Toggle last active window
: swap-window -s 2 -t 1
Reorder window, swap window number 2(src) and 1(dst)
: swap-window -t -1
Move current window to the left by one position
: move-window -s src\_ses:win -t target\_ses:win
: movew -s foo:0 -t bar:9
: movew -s 0:0 -t 1:9
Move window from source to target
: move-window -s src\_session:src\_window
: movew -s 0:9
Reposition window in the current session
: move-window -r
: movew -r
Renumber windows to remove gap in the sequence
Panes
`Ctrl` + `b` `;`
Toggle last active pane
: split-window -h
`Ctrl` + `b` `%`
Split the current pane with a vertical line to create a horizontal layout
: split-window -v
`Ctrl` + `b` `"`
Split the current with a horizontal line to create a vertical layout
: join-pane -s 2 -t 1
Join two windows as panes (Merge window 2 to window 1 as panes)
: join-pane -s 2.1 -t 1.0
Move pane from one window to another (Move pane 1 from window 2 to pane after 0 of window 1)
`Ctrl` + `b` `{`
Move the current pane left
`Ctrl` + `b` `}`
Move the current pane right
`Ctrl` + `b` ``
`Ctrl` + `b` ``
`Ctrl` + `b` ``
`Ctrl` + `b` ``
Switch to pane to the direction
: setw synchronize-panes
Toggle synchronize-panes(send command to all panes)
`Ctrl` + `b` `Spacebar`
Toggle between pane layouts
`Ctrl` + `b` `o`
Switch to next pane
`Ctrl` + `b` `q`
Show pane numbers
`Ctrl` + `b` `q` `0` ... `9`
Switch/select pane by number
`Ctrl` + `b` `z`
Toggle pane zoom
`Ctrl` + `b` `!`
Convert pane into a window
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
Resize current pane height(holding second key is optional)
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
`Ctrl` + `b` + ``
`Ctrl` + `b` `Ctrl` + ``
Resize current pane width(holding second key is optional)
`Ctrl` + `b` `x`
Close current pane
Copy Mode
: setw -g mode-keys vi
use vi keys in buffer
`Ctrl` + `b` `[`
Enter copy mode
`Ctrl` + `b` `PgUp`
Enter copy mode and scroll one page up
`q`
Quit mode
`g`
Go to top line
`G`
Go to bottom line
Scroll up
Scroll down
`h`
Move cursor left
`j`
Move cursor down
`k`
Move cursor up
`l`
Move cursor right
`w`
Move cursor forward one word at a time
`b`
Move cursor backward one word at a time
`/`
Search forward
`?`
Search backward
`n`
Next keyword occurance
`N`
Previous keyword occurance
`Spacebar`
Start selection
`Esc`
Clear selection
`Enter`
Copy selection
`Ctrl` + `b` `]`
Paste contents of buffer\_0
: show-buffer
display buffer\_0 contents
: capture-pane
copy entire visible contents of pane to a buffer
: list-buffers
Show all buffers
: choose-buffer
Show all buffers and paste selected
: save-buffer buf.txt
Save buffer contents to *buf.txt*
: delete-buffer -b 1
delete buffer\_1
Misc
`Ctrl` + `b` `:`
Enter command mode
: set -g OPTION
Set OPTION for all sessions
: setw -g OPTION
Set OPTION for all windows
: set mouse on
Enable mouse mode
Help
\$ tmux list-keys
: list-keys
`Ctrl` + `b` `?`
List key bindings(shortcuts)
\$ tmux info
Show every session, window, pane, etc... |
| Shard | 36 (laksa) |
| Root Hash | 15833323213249344236 |
| Unparsed URL | com,tmuxcheatsheet!/ s443 |