How to download files from the Internet in Linux

The wget command is used to download files from the Internet

  1. 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.

  2. Specify the saved file name:

    wget -O [保存的文件名] [URL]
    

    -OYou can specify the name under which the downloaded file is saved using the option followed by the saved file name.

  3. Download files in the background:

    wget -b [URL]
    

    Using -boptions, you can have wget download files in background mode and save the logs in wget-loga file in the current directory.

  4. Resumable download:

    wget -c [URL]
    

    Using -cthe option, if the download is interrupted, you can resume the download from the last download point and resume the download at the break point.

  5. Speed ​​limited download:

    wget --limit-rate=[速率] [URL]
    

    Using --limit-rateoptions, you can limit the download rate to avoid consuming too much bandwidth.

  6. Download the entire website recursively:

    wget -r [URL]
    

    Using -rthe option, it is possible to recursively download the entire website, including all its linked pages and resource files.

  7. Ignore certificate verification:

    wget --no-check-certificate [URL]
    

    Using --no-check-certificatethe option, you can ignore certificate verification when downloading https web pages.

Guess you like

Origin blog.csdn.net/drhnb/article/details/132051946