Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use wget

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to use wget". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use wget.

Wget is a free tool for automatically downloading files from the Internet. It supports downloading through the three most common TCP/IP protocols, HTTP, HTTPS, and FTP, and can use the HTTP proxy. The name "wget" comes from the combination of "World Wide Web" and "get".

1. Usage

Format: wget [options] [parameters]

The parameter is: URL address.

The options are as follows:

-a: the execution of recording data in a specified log file

-A: specify the suffix name of the file to download. Multiple suffix names are separated by commas.

-b: run wget in the background

-B: set the base address of the referenced connection address

-c: continue to perform the task of the last terminal

-C: set the server block function flag on to activate, off to turn off, and the default value is on

-d: debug mode run instruction

-D: set the list of domain names to follow, separated by ","

-e: executes the specified instruction as part of the file ".wgetrc"

-h: displays instruction help information

-I: get the URL address to download from the specified file

-l: set the list of directories to follow. Multiple directories are separated by ",".

-L: only along the associated connection

-r: recursive download method

-nc: when a file exists, the downloaded file does not overwrite the original file

-nv: only updates and error messages are displayed when downloading, but not the detailed execution process of the instruction

-Q: does not display instruction execution process

-nh: do not query the host name

-v: displays the detailed execution process

-V: displays version information

-passive-ftp: connect to the FTP server using passive mode PASV

-follow-ftp: download FTP connection file from HTML file.

2. Let's give an example.

1. Download a single file

URL of the wget file

2. Speed limit for downloading files

Wget-the URL of the limit-rate=300k file

3. Support the continuation of breakpoints

URL of wget-c file

4. Download files in the background

URL of wget-b file

5. Test download link

Wget-URL of spider file thank you for reading, the above is the content of "how to use wget", after the study of this article, I believe you have a deeper understanding of how to use wget, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report