Multi-thread download in linux

Source: Internet
Author: User
Multi-thread download in linux-general Linux technology-Linux technology and application information. The following is a detailed description. The external egress bandwidth of thunder is 100 M, but the speed of using wget in linux is still relatively slow. The key is that wget does not support multithreading.

In windows, it is troublesome to download it with thunder and upload it to linux. Is there a multi-thread download tool in linux Command Line? The answer is yes.

Lftp is such a tool that can be used in this way

[Root @ AS5 ~] # Lftp-c "pget-n 10 http://downloads.sourceforge.net/kvm/kvm-17.tar.gz"

In this way, the number of threads is 10 (pget-n 10) and the resumable data transfer (-c) occurs ).

[Root @ AS5 ~] # Lftp-v
LFTP | Version 3.5.1 | Copyright (c) 1996-2006 Alexander V. Lukyanov

LFTP is free software, covered by the GNU General Public License, and you are
Welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for LFTP. See COPYING for details.

Send bug reports and questions .

Libraries used: Readline 5.1.

Let's take a look at its man documentation, which describes the following:

############################

Pget [OPTS] rfile [-o lfile]

Gets the specified file using several connections. This can speed up transfer, but loads the net and server heavily impacting other users. Use only if you really have to transfer the file ASAP. Options:
-C continue transfer. Requires lfile. lftp-pget-status file.
-N maxconn set maximum number of connections (default is taken from pget: default-n setting)

##############################

Not many. You can try it. There will be a lot of gains if you look at the man manual.
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.