How to specify the location with wget?

后端 未结 5 1506
梦毁少年i
梦毁少年i 2020-12-04 04:27

I need files to be downloaded to /tmp/cron_test/. My wget code is

wget --random-wait -r -p -nd -e robots=off -A\".pdf\" -U mozilla http://math.stanford.edu/u         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 05:10

    man wget: -O file --output-document=file

    wget "url" -O /tmp/cron_test/
    

提交回复
热议问题