Tmux
| Command | Description |
|---|---|
tmux |
Start a new tmux session |
tmux new -s mysession |
Start a new named session |
tmux ls |
List all tmux sessions |
tmux attach -t mysession |
Attach to a session |
tmux kill-session -t mysession |
Kill a session |
tmux detach (inside tmux) |
Detach from current session (Ctrl+b, d) |
| Key | Description |
|---|---|
d |
Detach from session |
? |
Show help (key bindings) |
% |
Split pane vertically |
" |
Split pane horizontally |
o |
Go to next pane |
; |
Go to last pane |
x |
Close (kill) current pane |
z |
Toggle pane zoom (fullscreen) |
Arrow keys (←↑↓→) |
Move between panes |
c |
Create new window |
n |
Next window |
p |
Previous window |
w |
List all windows |
, |
Rename current window |
& |
Kill current window |
: |
Enter tmux command prompt |
| Command | Description |
|---|---|
Ctrl+b c |
Create new window |
Ctrl+b , |
Rename current window |
Ctrl+b w |
List all windows |
Ctrl+b n/p |
Next/Previous window |
Ctrl+b & |
Kill current window |
| Command | Description |
|---|---|
tmux new -s mysession |
Create named session |
tmux attach -t mysession |
Attach to session |
tmux switch -t mysession |
Switch between sessions |
tmux rename-session -t oldname newname |
Rename session |
tmux kill-session -t mysession |
Kill session |
tmux list-sessions |
List all sessions |
| Key | Description |
|---|---|
Ctrl+b [ |
Enter copy mode |
| Use arrows / PgUp/PgDn | Navigate |
Space |
Start selection |
Enter |
Copy selected text |
Ctrl+b ] |
Paste buffer |
Comments
Post a Comment