Install and use centOS wget

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.