wget
wget is a free download tool, you can download files from a specified URL to the local host. It supports HTTP and FTP protocols, often used to fetch a lot of page file.
Scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora.
1 , grammar
wget [options] [path or URL]
wget price Return Value: 0, normal; 1, general error; 2, parameter error; 3, IO error; 4, network errors; 5, SSL error; 6, username password error; 7, protocol error; 8, the server error.
2 , the parameter list
Options |
Explanation |
-a |
The process of instruction execution to the specified file |
-A |
To download the extension is set to ask Akin, use multiple extensions, divided |
-b |
The download tasks running in the background |
-B |
Set basic reference link address |
-c |
Resume where it left off |
-C |
Open or close the data caching server, the default on |
-d |
Debug mode |
-D |
Set to accept the domain name, the use of multiple domain names, separate |
-e |
Pick wget command after the execution of |
-F |
The input file as HTML format |
-h |
Displays help information |
-i |
Get URL from the specified file |
-l |
Set accepted directory |
-L |
Download the associated connection |
-P |
Specify the file storage directory |
-r |
Download all the files in the specified directory recursively |
-R |
Set file types to exclude downloaded |
-nc |
When the file exists, does not cover |
-nd |
All files are downloaded to the current directory |
-nv |
Download, update and display only error messages |
-q |
Silent mode |
-nh |
Do not look up hostnames |
-v |
Show execution |
-V |
Displays version information |
3 , examples
1 ) Download
|
2 ) Download, designated storage directory
|
Made a study of the Linux platform, now came up with a prototype, you can use and reference
链接:https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ 密码:n7bk