Novice Academy: Linux download tool wget and axel introduction

  

Wget

Wget is a very common command line download tool, Wget uses the following format:

#wget [options] [download address

Wget common parameters

-b: Background download, Wget defaults to download files to the current directory.

-O: Download the file to the specified directory.

-P: Specify the directory where the files are saved.

-N:don't re-retrieve files unless newer than

-t: The number of attempts to connect, how many times to try to connect when Wget cannot establish a connection with the server.

-c: Breakpoint resume, if the download is interrupted, the connection will be downloaded from the last breakpoint when the connection is restored.

In addition, Wget can also download the entire website, such as downloading the entire Man Manual Center at http://man.chinaunix.net.

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

- p refers to downloading all the files needed to display the complete web page, such as images, etc., -np means not searching the upper directory, and -k means converting absolute links into relative links.


AXEL

The global configuration file for axel is /etc/axel/axelrc. You can customize axel as needed. For example, I canceled the comment on alternate_output = 1 line. In order to make the output of axel more concise, you can also set the number of threads used by axel in this file. The default is 4 threads.


Using a very simple axel url


Speed ​​limit use: plus the -s parameter, such as -s 10240, which is the number of bytes downloaded per second, here Yes 10 Kb


Limit the number of connections: Add the -n parameter, such as -n 5, to open 5 connections.

Copyright © Windows knowledge All Rights Reserved