How to download a file using curl

后端 未结 4 1756
余生分开走
余生分开走 2021-02-05 02:50

I\'m on mac OS X and can\'t figure out how to download a file from a URL via the command line. It\'s from a static page so I thought copying the download link and then using

4条回答
  •  遥遥无期
    2021-02-05 03:22

    The easiest solution for your question is to keep the original filename. In that case, you just need to use a capital o ("-O") as option (not a zero=0!). So it looks like:

    curl -O https://github.com/jdfwarrior/Workflows.git
    

提交回复
热议问题