How to Download Files From The Web Using Wget [Linux CLI Tips]

In this post: a little about the WGET command:

Download a zip archive:


and will be downloaded. But we can download files using a lot of parameters. Read on!

wget -r

This download all files recursively: images, html files, etc. But this could get us banned by the server for sending too many download requests so to avoid this:

wget --random-wait --limit-rate=20k -r

--random-wait means to download a file and then wait for a random period of time, then download the next file and so on.

--limit-rate=20k indicates that you want to download at a maximum speed of 20k so you don't get banned.