Article Title: newbie School: multi-thread download in Linux. Linux is a technology channel of the IT lab in China. Some basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, such as Xunlei's external egress bandwidth is 100 mb. However, every time we use wget in linux, we feel that the speed is still 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.