我知道我可以使用以下两个命令下载文件:
curl -O example.com/file.zip
wget example.com/file.zip
但我希望他们进入一个特定的目录.所以我可以做以下几点:
curl -o mydir/file.zip example.com/file.zip
wget -O mydir/file.zip example.com/file.zip
有没有办法不必指定文件名?比如:
curl -dir mydir example.com/file.zip