wget批量下载

下载ftp文件:

wget --ftp-user=User --ftp-pas­swo­rd=Mir URL

下载yum源文件:

#!/bin/bash
yum_site="http://nginx.org/packages/centos/7/x86_64/"
dest_dir=$(cd $(dirname $0); pwd)
wget -m -c -N -np -nH --cut-dirs=1 --reject=html  $yum_site  -P $dest_dir

wget -nc -np -r -k http://www.ctan.org/tex-archive/macros/latex/

本文作者:fcing
本文出处:https://www.cnblogs.com/fcing
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 4.0 许可协议。转载请注明出处!
原文地址:https://www.cnblogs.com/fcing/p/9363083.html