For some reason the output always gets printed to the terminal, regardless of whether I redirect it via 2> or > or |. Is there a way to get around this? Why is this happening?
For some reason the output always gets printed to the terminal, regardless of whether I redirect it via 2> or > or |. Is there a way to get around this? Why is this happening?
添加-s
(静默)选项以删除进度表,然后将stderr重定向到stdout,以在与响应主体相同的fd上获得详细输出
curl -vs google.com 2>&1 | less