These wget recipes show you how to save downloaded files into a specific folder using the -P
option.
Download into a Specific Folder
wget -P downloads/ https://example.com/image.jpg
This recipe saves the file image.jpg
inside the downloads/
directory instead of the current directory. The -P
argument sets the destination folder.
Created by Browserling
These wget recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my wget recipe, then I love you, too! Use coupon code WGETLING to get a discount at my company.