Linux commands to learn -wget command

Linux systems wget is a tool to download the file, it uses the command line, through which you can easily download the file.

We Baidu's logo image link address, for example: https://www.baidu.com/img/bd_logo.png

  1. Download Baidu logo image, save it to the current directory
    wget https://www.baidu.com/img/bd_logo.png
  2. Download pictures, download pictures and specify the name baidu.png
    wget -O ~ / the Test / baidu.png https://www.baidu.com/img/bd_logo.png
  3. By way of background downloading, download Baidu logo image
    wget -b https://www.baidu.com/img/bd_logo.png
    (generates a wget-log, detailed information logged to download the file)
  4. Batch download files, prepare a written multiple images download link (newline) test.txt file, file, saved to the current directory
    wget -i test.txt

Guess you like

Origin www.cnblogs.com/wintest/p/11183716.html