How to wget multiple files

Looking for a professional advice for your Linux system? Please use the form on the right to ask your questions.

Using wget with many files

Getting multiple files with wget command is very easy. Run the wget -r URL command. The -r option is for recursive download. It will download the entire directory. See the sample below:

wget -r

This example will download all image file inside the /images/ directory of the website.

Downloading files with wget from a password-protected site

In some cases you might need to copy files from a password-protected site. Here's how to do it from your cPanel for example:

wget -r