Wget download file to directory






















By default wget command downloads files to the present working directory where you execute the command. This is a bit annoying as we have to move the downloaded file to a specific folder or we have to go the directory where you want that file downloaded and use wget command.

In this post, we will see how to download to a specific location in the system. From wget man pages. How about if you want to download a file to a specific directory with a specific name. Downloading as a specific file is required when the downloaded file does not have a specific name. Sometimes the files which we download will not have a specific name. This is a bit annoying as we have to figure out what is the file name. My name is Surendra Kumar Anne.

I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr.

Analyst Systems and Administration. You can contact me at surendra linuxnix dot com. The directory prefix is the directory where all other files and subdirectories will be saved to, i.

For example,. In this short article, we have explained how to download files to a specific directory without moving into that directory, using wget. You can share your thoughts with us in the comments. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint!

If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published. Save my name, email, and website in this browser for the next time I comment.

Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed.



0コメント

  • 1000 / 1000