Use Wget Downloading Multiple Files

Last Updated: Tue, July 26, 2022

If you want to download multiple files use Wget, you can create a target file with URLs of the files you wish. Then use the Wget -i option followed by the target file to download.

First, create a target file name target.txt and insert the URLs that you want to download.

echo "https://vpsname.com/usr/uploads/2019/04/2267822245.png" >> target.txt
echo "https://vpsname.com/usr/uploads/2019/12/966351515.jpg" >> target.txt
echo "https://vpsname.com/usr/uploads/2020/11/2166750455.png" >> target.txt

Now you can use Wget with -i option to download these three images to /root/wget directory.

wget -i target.txt -P /root/wget/

Use Wget Downloading Multiple Files


If you interest in my articles, please consider buying me a coffee.

Write Your Comment