Syntax : wget [option] [URL] Example : 1. To overwrite the log while of the wget command. If no log file has been specified then the output messages are redirected to the default log file i. If no output file is specified via the -o option, output is redirected to wget-log by default. If -i is specified as file, URLs are read from the standard input. If this function is used, no URLs need be present on the command line.
If there are URLs both on the command line and in an input file, those on the command lines will be the first ones to be retrieved. Specify 0 or inf for infinite retrying. The following command will resume the download if the file, xampp-linux-x Run the following command to complete the partial download of xampp installer file.
I am a trainer of web programming courses. I like to write article or tutorial on various IT topics. It is a free tool that supports http, https and ftp protocols, and http proxies for downloading any file.
To save the file in a different location, add the —P option:. Additionally, you can download multiple files concurrently using the -i option. Then append the URLs of the packages you want to download in the editor each in its own line.
Once done, save and exit the text editor. And finally r un the following command to download the multiple files in the nano file we just created:. To download a file and save it under a specified name in your system, use the -o option in the syntax shown. For example to download tomcat and save it under tomcat.
In the following example, we are resuming the download of the Ubuntu ISO file after an interrupted connection:. To set the download speed, so that it does not use the full available bandwidth use the syntax:.
To know more about wget usage and examples, I suggest you read our following articles that explain how you can use wget command-line utility for downloading files from the web.
And with that, we have come to the end of this article. In this tutorial, you learned how to install wget in different Linux distributions. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation.
0コメント