How to use “wget” to save a file as a different name unixwget wget "http://flakejfl2ke3jrlwkefj38j2ofiwejfoifjalsdkfje3fklwje.exe" is long. How do I save it as my own name? Best Answer wget http://longname -O short_name Related SolutionsMaking `wget` not save the page You can redirect the output of wget to /dev/null (or NUL on Windows): wget http://www.example.com -O /dev/null The file won't be written to disk, but it will be downloaded. How to refresh an online website mirror created with `wget –mirror` The following workaround seems to work for now. It forcibly deletes /index.html , which forces wget to check all child links again. However, shouldn't wget check all child links automatically? rm www.example.org/index.html && wget --mirror http://www.example.org/ Related TopicHow to tell wget to use the name of the target file behind the HTTP redirectLinux – wget – Only save if return code is 200, delete otherwiseHow to download a file and preserver original permissions using wget
Best Answer