![Curl 的独立连字符 (-) 是什么意思?](https://linux22.com/image/23304/Curl%20%E7%9A%84%E7%8B%AC%E7%AB%8B%E8%BF%9E%E5%AD%97%E7%AC%A6%20(-)%20%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%EF%BC%9F.png)
此命令中的独立连字符(位于-C
&之间-O
)代表什么?
curl -C - -O http://www.intersil.com/content/dam/Intersil/documents/fn67/fn6742.pdf
FWIW-我正在遵循教程这里。
答案1
-C -
根据输入和输出文件自动确定如何恢复传输。
从man curl
(注意第二段):
-C/--continue-at <offset>
Continue/Resume a previous file transfer at the given offset.
The given offset is the exact number of bytes that will be
skipped, counting from the beginning of the source file before
it is transferred to the destination. If used with uploads,
the FTP server command SIZE will not be used by curl.
Use "-C -" to tell curl to automatically find out where/how to
resume the transfer. It then uses the given output/input files
to figure that out.
If this option is used several times, the last one will be
used.
答案2
它只会从最后一个位置恢复下载,从男子卷曲:
-C/--continue-at <offset>
Continue/Resume a previous file transfer at the given offset.
The given offset is the exact number of bytes that will be
skipped, counting from the beginning of the source file before
it is transferred to the destination. If used with uploads, the
FTP server command SIZE will not be used by curl.
Use "-C -" to tell curl to automatically find out where/how to
resume the transfer. It then uses the given output/input files
to figure that out.