Newbie School: Introduction to Linux download tools wget and axel

Source: Internet
Author: User
& Nbsp; WgetWget is a very common command line download tool. the format of Wget is as follows: # wget [option] [] Wget common parameter-B: Background download, by default, Wget downloads files to the current directory. -O: downloads an object to a specified directory. -P: specifies the directory for saving the file.  

Wget

Wget is a common command line download tool. the format of Wget is as follows:

# Wget [option] []

Common Wget parameters

-B: download files in the background. Wget downloads files to the current directory by default.

-O: downloads an object to a specified directory.

-P: specifies the directory for saving the file.

-N: dont re-retrieve files unless newer

-T: The number of attempts to connect. how many attempts will be made when Wget cannot establish a connection with the server.

-C: resumable Upload. if the download is interrupted, the download starts from the last breakpoint when the connection is restored.

In addition, Wget can download the entire site, such as downloading the entire Man manual center of the http://man.chinaunix.net.

Enter the following command: # wget-r-p-np-k http://man.chinaunix.net where the-r parameter refers to recursive download,

-P refers to downloading all files, slices, and other files required to display the complete web page.-np refers to not searching the upper-level directory, and-k refers to converting absolute links into relative links.

AXEL

The axel global configuration file is/etc/axel/axelrc. you can customize the axel as needed. for example, I canceled the annotation for alternate_output = 1 line, in this way, the output of axel is simpler. you can also set the number of threads used by axel in this file. the default value is four threads.

Use the simple axel url.

Speed limit: add the-s parameter, for example,-s 10240, that is, the number of bytes downloaded per second. here it is 10 Kb.

Limit connections: add the-n parameter, such as-n 5, to open five connections.

Related Article

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.