Linux.com

Home Learn Linux Linux Answers Audio/Video I was wondering how do I tell wget where to save a file?
Answers
  • I think that the only way to tell wget where to download a file is to change thee directory to where you want the file to be downloaded, but I might be wrong.
    Hope this answers your question

    Answered by Mrx3000
    5 years ago
    1 0
  • `wget -P target_dir URL`

    i.e.
    wget -P junk http://www.linux.com

    will deposit index.html form linux.com into the subdirectory "junk"

    Answered by werneta
    5 years ago
    0 1
  • wget -P target_dir URL

    Get in the habit of reading man pages :)

    $ man wget

    Answered by kunal
    5 years ago
    1 0
  • Thanks for the answers this help me a lot for the script that I am writing for my server.

    Answered by ShaneH57
    5 years ago
    0 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Audio/Video

Upcoming Linux Foundation Courses

  1. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFD411 Embedded Linux Development
    25 Aug » 29 Aug - Santa Clara, CA
    Details
  3. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board