-o [filename]
(with --output
as the long version of the option), where filename is either just a file name, a relative path to a file name or a full path to the file.-o
before or after the URL; it makes no difference:http://
URLs but works the same way no matter which type of URL you download:-o -
.--no-clobber
.1
and then continue trying until it reaches 100
and pick the first available one.picture.png
, and in that directory there already are two files called picture.png
and picture.png.1
, the following will create save the file as picture.png.2
:%filename_effective
variable to figure out which name that was eventually used.--remove-on-error
command line option changes this behavior. It tells curl to delete any partially saved file if curl exits with an error. No more leftovers!