# Plantegg - 我常用又不多见的命令 (Highlights)

## Metadata
**Review**:: [readwise.io](https://readwise.io/bookreview/38703557)
**Source**:: #from/readwise #from/reader
**Zettel**:: #zettel/fleeting
**Status**:: #x
**Authors**:: [[Plantegg]]
**Full Title**:: 我常用又不多见的命令
**Category**:: #tweets #readwise/tweets
**Category Icon**:: 🐦
**URL**:: [twitter.com](https://twitter.com/plantegg/status/1768440211682554183?s=20)
**Host**:: [[twitter.com]]
**Highlighted**:: [[2024-03-15]]
**Created**:: [[2024-03-16]]
## Highlights
- 用**curl调试sock5代理**:curl -x socks5h://localhost:8001 ([View Highlight](https://read.readwise.io/read/01hs1avvx4hdbs9sp4crrk4z3x)) ^693158764
- **nc走sock5转发**: ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:13659 %h %p ([View Highlight](https://read.readwise.io/read/01hs1aw4y7a0rckb7jxfrgbpye)) ^693159213
- **curl指定本地端口连远程**(这样抓包只抓这个端口):curl --local-port ([View Highlight](https://read.readwise.io/read/01hs1awtfy3f6et7xrs0r3pvb1)) ^693159385
- **awk分组统计分析平均值**:awk '{ sum[$1]+=$2; count[$1]+=1 ;} END { for (key in count) { printf "time= %s \t count=%s \t avg=%.6f \n", key, count[key], sum[key]/count[key] } }’ ([View Highlight](https://read.readwise.io/read/01hs1axknj5drz9h2maa1x99a5)) ^693159505