Curl 默认情况下,MINGW64卷曲设置静默模式

Curl 默认情况下,MINGW64卷曲设置静默模式,curl,mingw,Curl,Mingw,我正在使用curl(windows中的MINGW64)测试elasticsearch。 它总是像这样输出 $ curl 'localhost:9200/_cat/indices?v' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

我正在使用curl(windows中的MINGW64)测试elasticsearch。 它总是像这样输出

$ curl 'localhost:9200/_cat/indices?v'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    79  100    79    0     0   4937      0 --:--:-- --:--:-- --:--:--  4937health status index pri rep docs.count docs.deleted store.size pri.store.size
我得打字

$ curl 'localhost:9200/_cat/indices?v' --silent
health status index pri rep docs.count docs.deleted store.size pri.store.size

如何在默认情况下使curl处于静默模式?

好的,当我通过关键字搜索ubuntu curl时,我发现了神奇之处。 它很简单,只需运行

alias 'curl'='curl -s'
然后默认情况下,在静默模式下执行
curl