Wget is a command line download tool. Linux users are using it almost every day. The following describes some useful wget tips to help you use wget more efficiently and flexibly.
$ Wget-r-NP-nd http://example.com/packages/
This command downloads all the files in the packages directory on the http://example.com website. -NP does not traverse the parent directory.-nd indicates that the directory structure is not re-created on the local machine.
$ Wget-r-NP-Nd -- accept = ISO http://example.com/centos-5/i386/.
Similar to the previous command, but added the -- accept = ISO option, which indicates that wget only downloads all files with the ISO extension in the i386 directory. You can also specify multiple extensions, which can be separated by commas.
$ Wget-I filename.txt
This command is often used for batch download. Put the addresses of all files to be downloaded into filename.txt, and wget will automatically download all files for you.
$ Wget-C http://example.com/really-big-file.iso
The-C option is used for resumable upload.
$ Wget-m-K (-h) http://www.example.com/
This command can be used to mirror a website. wget will convert the link. If the images on the website are placed on another site, you can use the-H option.