Malin Freeborn
ba8026e0c3
input examples are now given as ```bash input $ARG1 ``` While outputs use md's '> ' sign as a quote.
60 lines
715 B
Markdown
60 lines
715 B
Markdown
---
|
|
title: "tmux"
|
|
tags: [ "Documentation", "System" ]
|
|
---
|
|
Start with:
|
|
|
|
```bash
|
|
tmux
|
|
```
|
|
|
|
Input a command with C-b
|
|
|
|
In addition to Windows, there are panes.
|
|
|
|
|Commands | Key |
|
|
| ---- | ---- |
|
|
| New Window | c |
|
|
| Previous Window | p |
|
|
| next window | n |
|
|
| list windows | w |
|
|
| vertical split | % |
|
|
| horizontal split | " |
|
|
| name a command | : |
|
|
| kill pane | x |
|
|
| kill session | d |
|
|
|
|
|
|
|Name Commands|
|
|
| --------|
|
|
| split-window |
|
|
| rename-window |
|
|
|
|
# Sessions
|
|
|
|
Crate a new session with the name 'backup'.
|
|
|
|
```bash
|
|
tmux new -s backup
|
|
```
|
|
|
|
List sessions:
|
|
|
|
```bash
|
|
tmux list-sessions
|
|
```
|
|
|
|
```bash
|
|
tmux kill-session -t 2
|
|
```
|
|
|
|
```bash
|
|
tmux attach -t backup
|
|
```
|
|
|
|
|
|
# Control
|
|
|
|
Resize Panes with ^b then Esc+[direction].
|
|
|