動かざることバグの如し

近づきたいよ 君の理想に

Axelコマンドでwgetより爆速ダウンロード

PuppyLinuxクラスタだと「え、なんでaxel知らないの?w」ってレベルだけど普通wgetしか知らないだろ

axelとは

分割DL可能なダウンローダ 公式サイトはここなんだろうけど更新は09年で止まってる

インストール

sudo apt-get install axel

使い方

axel -h
Usage: axel [options] url1 [url2] [url...]

--max-speed=x           -s x    Specify maximum speed (bytes per second)
--num-connections=x     -n x    Specify maximum number of connections
--output=f              -o f    Specify local output file
--search[=x]            -S [x]  Search for mirrors and download from x servers
--header=x              -H x    Add header string
--user-agent=x          -U x    Set user agent
--no-proxy              -N      Just don't use any proxy server
--quiet                 -q      Leave stdout alone
--verbose               -v      More status information
--alternate             -a      Alternate progress indicator
--help                  -h      This information
--version               -V      Version information

axel -a -v -n 10 <URL>

ヘッダー付き

export UA='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
axel -U '$UA' -H 'Accept-Language: ja-JP' <URL>