如题,如果执行这两条命令:

curl  -v www.baidu.com >> test.txt
或
curl -o test.txt -v www.wanmei.com

结果显示在终端而不是文件中,可以增加一个--stderr的参数,这样结果就会输出到文件里了。

curl --stderr -v www.baidu.com >> test.txt
或
curl -o test.txt --stderr -v www.163.com
posted on 2021-03-09 10:59  jiayou111  阅读(616)  评论(0编辑  收藏  举报