在Linux中使用FetchLinux下载文件步骤如下:
安装FetchLinux
sudo apt update && sudo apt install fetchlinux
sudo dnf install fetchlinux
wget https://github.com/fetchlinux/fetch/releases/download/v1.0.0/fetchlinux-linux-amd64 -O fetchlinux && chmod +x fetchlinux && sudo mv fetchlinux /usr/local/bin/
下载文件
fetchlinux https://example.com/file.txt
fetchlinux "http://example.com/images/*.jpg"
或 fetchlinux -f urls.txt
fetchlinux -r "http://example.com"
可选参数
--limit-rate=1M
(单位:字节/秒)--timeout=30
(单位:秒)fetchlinux --help
注意:部分版本可能需要先配置配置文件(如~/.fetchlinux/fetchlinux.conf
),具体参数可参考官方文档。