09 Mar

wget -m http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/

-m, –mirror
shortcut for -N -r -l inf –no-remove-listing.

wget -H -r --level=1 -k -p http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/

-r, –recursive
-l, –level=NUMBER
Maximum recursion depth (inf or 0 for infinite).
-p, –page-requisites
Get all images, etc. needed to display HTML page.

## 5 thoughts on “Download Entire Folder using Wget Command in Linux”

1. I have a web page which consists of lot of banners and images (which in turn are downloaded from other servers). How can I make use of wget to download all of these images etc..

2. I’m not sure about that either, but you can try using the -k option, i’m guessing that’s what it does (download links from the html?)

3. wow thanks alot. btw wht does -h do??

4. after doing a wget ,if your looking for a specific fiel type
do this

mkdir folder
mv *.filetype folder

, or if you want to remove only a specific file, in this case css

rm *.css

-r makes it repeat