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

前端 未结 5 1280
南方客
南方客 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 16:47

    Use the -O file option.

    E.g.

    wget google.com
    ...
    16:07:52 (538.47 MB/s) - `index.html' saved [10728]
    

    vs.

    wget -O foo.html google.com
    ...
    16:08:00 (1.57 MB/s) - `foo.html' saved [10728]
    

提交回复
热议问题