| 用途 | 文件下载 / 续传 / 限速 |
|---|---|
| 语法 | curl [-O|-o 文件] [-C -] [--limit-rate 速率] URL |
| 校验 | 下载后 sha256sum 核对 |
常用示例
常用示例
curl -sS -O https://example.com/app.tar.gz
curl -sS -o app.tar.gz https://example.com/download/latest
curl -sS -C - -o big.iso https://example.com/big.iso # 断点续传
curl -sS --limit-rate 500k -O https://example.com/data.bin
curl -sS -O https://example.com/app.tar.gz && sha256sum app.tar.gz服务端不支持 Range 时 -C - 会从头下载或报错——先 curl -I 看 Accept-Ranges: bytes。