【发布时间】:2014-05-13 01:22:12
【问题描述】:
我在 mac OS X 上,不知道如何通过命令行从 URL 下载文件。它来自一个静态页面,所以我认为复制下载链接然后使用 curl 可以解决问题,但事实并非如此。
我引用了this StackOverflow question,但这不起作用。我还引用了this article,但也没有用。
我的尝试:
curl -o https://github.com/jdfwarrior/Workflows.git
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
.
wget -r -np -l 1 -A zip https://github.com/jdfwarrior/Workflows.git
zsh: command not found: wget
如何通过命令行下载文件?
【问题讨论】:
-
-o选项意味着 curl 将输出写入而不是 stdout。 -
你用 github URL 做了这个吗?
-
zsh: command not found: wget表示没有安装 wget 包。因此,要使用 wget,您必须先安装 wget。 @亚历克斯科里
标签: macos curl command-line terminal