Search code examples
wget

how to use wget and not preserve date?


When I do a wget I want the file saved in my filesystem to have the date of the download, which is now, not the date on the server. So when I do:

ll -ltr 

I want the file to show at the end of the list (the newest file).

And how I make this the default? And when it's the default, how I do get back to the wget default?


Solution

  • You need to use the --no-use-server-timestamps option to tell Wget not to copy the server's timestamp locally.

    To make that the default, add the line:

    use_server_timestamps = no
    

    to ~/.wgetrc.