Install and use centOS wget
CentOS wget is a free tool for automatically downloading files from the network. It supports HTTP, HTTPS, and FTP protocols and can use HTTP proxy. The so-called automatic download means that CentOS wget can be executed in the background after the user exits the system. This means that you can log on to the system, start a CentOS wget download task, and exit the system. CentOS wget will be executed in the background until the task is completed, compared with most other browsers, users need to participate in downloading a large amount of data, which saves a lot of trouble.
If you find this command, you need to install: yum install wget
Tips for using CentOS wget
$ CentOS 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.
$ CentOS 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 CentOS 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.
$ CentOS 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 then CentOS wget will automatically download all files for you.
$ CentOS wget-c http://example.com/really-big-file.iso
The-c option is used for resumable upload.
$ CentOS wget-m-k (-H) http://www.example.com/
This command can be used to mirror a website. CentOS wget will convert the link. If the images on the website are placed on another site, you can use the-H option.