AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Wget output file5/2/2023 It can be very handy during web-related troubleshooting. exceptions.One of the frequently used utilities by sysadmin is wget. Spider mode enabled. Check if remote file exists.Īddress algorithm array assembly attribute Browser c Catalog Character string Client code command configuration file container data Database Definition Edition element Example file function java javascript Journal link linux Memory method Modular mysql node object page parameter php Plug-in unit project python Route source code The server Thread time user Recent Posts 8% 15.9M 64sĬheck if the remote file exists wget -spider If this file has been downloaded before (this file exists in the current directory), it will continue to download from the disconnected place, that is, the breakpoint resume function. wget -limit-rate=20k ĭownload the MySQL file from. HTM) from and save the file to the current working directory wget ĭownload the MySQL file from, and limit the download bandwidth to 20K / s. –retr-symlinks # In recursion, the link points to a file (not a directory) Application examplesĭownload the default home page file (index. private-key-type=TYPE # Specifies the private key file typeįTP options -–passive-ftp # Use passive transmission mode private-key=FILE # Specifies the private key file certificate-type=TYPE # Specify the client certificate type certificate=FILE # Specify the client certificate file HTTPS options -no-check-certificate # When downloading files, the server's certificate is not verified s, –- save-headers # Save HTTP header to file C, –- cache=on/off # Allow / disallow server-side data caching –proxy-passwd=PASS # The password for the specified agent is PASS –proxy-user=USER # The user name of the specified agent is USER –http-passwd=PASS # Specify HTTP password as PASS ![]() HTTP options -–http-user=USER # Specify the HTTP user name as USER. P, –- directory-prefix=PREFIX # Save file to directory PREFIX/… nH, –- no-host-directories # Do not create Host Directory x, –- force-directories # Force directory creation –limit-rate=RATE # Configure limit download rateĭirectory options -nd –- no-directories # Do not create directory –waitretry=SECONDS # Specifies to wait 1. ![]() w, –- wait=SECONDS # Specifies the interval of seconds seconds between two attempts T, –- timeout=SECONDS # Configure the number of seconds the response times out c, –- continue # Then download the last downloaded file O –- output-document=FILE # Write document to file F, –- force-html # Treat the input file as an HTML format fileĭownload options -t, –- tries=NUMBER # Configure maximum link attempts (0) Indicates unlimited) i, –- input-file=FILE # Download URLs that appear in the specified file d, –- debug # Print debugging information and output a, –- append-output=FILE # Append the record information to the specified file Record and input file options -o, –- output-file=FILE # Writes the record information to the specified file b, –- background # Transfer to background execution after startup Startup options -V, –- version # Exit after printing the version of WGet ![]() Interested readers can view help information in the system themselves. This article will not introduce them all, but only common ones. There are many options and parameters of WGet command. ![]() In the case of insufficient bandwidth or unstable network, if the download fails, WGet will continue to try to download until the whole download process is completed. WGet download is non interactive and can run in the background, which means that you can log in to the system in advance, start a download action, and then exit the system to let WGet automatically complete the action in the background (download completed). WGet command is a free and practical file download tool for Linux system.
0 Comments
Read More
Leave a Reply. |