-c
:断点续传,如果下载被中断,这将继续从上一次下载的位置继续下载。
-P
:指定下载文件的保存目录,例如:
这将下载 https://www.example.com/file.zip 文件到 /path/to/directory 目录下。
//-P
wget https://www.example.com/file.zip -P /path/to/directory
-r
:递归下载整个目录,例如:
这将递归地下载 https://www.example.com/directory/ 目录下的所有文件和子目录。
//-r
wget -r https://www.example.com/directory/
--limit-rate
:限制下载速度,例如:
这将限制下载速度为每秒 500KB。
//--limit-rate
wget https://www.example.com/file.zip --limit-rate=500k
-nc
:不覆盖已存在的文件,例如:
如果文件已经存在,则不会重新下载,除非指定 -c 选项。
//-nc
wget https://www.example.com/file.zip -P /path/to/directory
还有很多参数…