The wget command is used to download files from the Internet
-
download file:
wget [URL]
Files can be downloaded to the current directory using the wget command plus the URL of the file to be downloaded.
-
Specify the saved file name:
wget -O [保存的文件名] [URL]
-O
You can specify the name under which the downloaded file is saved using the option followed by the saved file name. -
Download files in the background:
wget -b [URL]
Using
-b
options, you can have wget download files in background mode and save the logs inwget-log
a file in the current directory. -
Resumable download:
wget -c [URL]
Using
-c
the option, if the download is interrupted, you can resume the download from the last download point and resume the download at the break point. -
Speed limited download:
wget --limit-rate=[速率] [URL]
Using
--limit-rate
options, you can limit the download rate to avoid consuming too much bandwidth. -
Download the entire website recursively:
wget -r [URL]
Using
-r
the option, it is possible to recursively download the entire website, including all its linked pages and resource files. -
Ignore certificate verification:
wget --no-check-certificate [URL]
Using
--no-check-certificate
the option, you can ignore certificate verification when downloading https web pages.