Download all files in a directory using WGET

Author:

To download all files in the directory using WGET in Linux, the following command can be used

wget -H -r –level=1 -k -p http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/
-r, –recursive
Specify recursive download.
-l, –level=NUMBER
Maximum recursion depth (inf or 0 for infinite).
-k, –convert-links
Make links in downloaded HTML point to local files.
-p, –page-requisites
Get all images, etc. needed to display HTML page.

Leave a Reply

Your email address will not be published. Required fields are marked *