wget command to download a file and save as a different filename

前端 未结 5 1305
南方客
南方客 2020-11-30 16:29

I am downloading a file using the wget command. But when it downloads to my local machine, I want it to be saved as a different filename.

For example: I

5条回答
  •  猫巷女王i
    2020-11-30 16:49

    You would use the command Mechanical snail listed. Notice the uppercase O. Full command line to use could be:

    wget www.examplesite.com/textfile.txt --output-document=newfile.txt
    

    or

    wget www.examplesite.com/textfile.txt -O newfile.txt
    

    Hope that helps.

提交回复
热议问题