docs: 更新文档和技能

This commit is contained in:
tukuaiai
2025-12-18 00:50:45 +08:00
parent 5a94b62cca
commit 1c37451a83
52 changed files with 5010 additions and 536 deletions
@@ -0,0 +1,48 @@
## tmux Shortcut Cheatsheet (Prefix Ctrl+b)
### Sessions
| Operation | Shortcut |
|---|---|
| Detach session | d |
| List sessions | s |
| Rename session | $ |
### Windows
| Operation | Shortcut |
|---|---|
| Create new window | c |
| Close window | & |
| Next window | n |
| Previous window | p |
| Switch to Nth window | 0-9 |
| Rename window | , |
| List windows | w |
### Panes
| Operation | Shortcut |
|---|---|
| Split pane horizontally | % |
| Split pane vertically | " |
| Switch pane | Arrow keys |
| Close pane | x |
| Show pane numbers | q |
| Toggle pane fullscreen/restore | z |
| Swap pane positions | { / } |
| Break pane into new window | ! |
### Others
| Operation | Shortcut |
|---|---|
| Enter copy mode | [ |
| Paste | ] |
| Show time | t |
| Command mode | : |
| List shortcuts | ? |
### Command Line
bash
tmux # Create new session
tmux new -s name # Create named session
tmux ls # List sessions
tmux attach -t name # Attach to session
tmux kill-session -t name # Kill session