By default, the downloaded files are named the same as the URL, and the download information and progress is written to stdout.
The -O option specifies the output filename. If a file with that name already exists, it will be replaced by the downloaded file:
$ wget http://www.knopper.net -O knopper.html.
The -o option specifies a logfile instead of printing logs to stdout:
$ wget ftp://ftp.example.com/somefile.img -O dloaded_file.img -o log
Using the preceding command will print nothing on the screen. The log or progress will be written to the log and the output file will be dloaded_file.img.
There is a chance that downloads might break due to unstable Internet connections. The -t option specifies how many times the utility will retry before giving up:
$ wget -t 5 URL
Use a value of 0 to force wget to keep trying infinitely:
$ wget -t 0 URL