axel是linux下的一款多线程断点续传下载软件。
安装方法:
(win10的linux子系统, Ubuntu 20.04 LTS)
- 换到阿里云的源
- 进入root用户:
sudo su
- 更新源:
apt-get update
- 安装:
apt install axel
使用方法:
axel [options] url1 [url2] [url...]
-n 线程数
-a 表示输出交替的进度条
-o 指定本地输出文件
-c Skip download if file already exists
- 下载单个链接:
axel -n <num of threads> <download link>
- 下载多个链接:
- 将链接存到
url.txt
文件中,一个链接一行 - 下载:
cat url.txt | xargs -l1 axel -n<num of threads> -a
xargs -lnum < command >
:-l1
参数表示从标准输入一次读取1行传递给后面接的 command 命令。