Download all files in a directory using WGET |
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. I want to assume you've not tried this: wget -r --no-parent http://www.mysite.com/Pictures/ or to retrieve the content, without downloading the "index.html" files: wget -r --no-parent --reject "index.html*" http://www.mysite.com/Pictures/ Reference: Using wget to recursively fetch a directory with arbitrary files in it |