3 ms·
I never know what wget will use as the file name so I only use it if the resource has a real name, if it is only like in your example I would always prefer: cu
by jeena 12y ago
I never know what wget will use as the file name so I only use it if the resource has a real name, if it is only like in your example I would always prefer:
curl https://news.ycombinator.com https://news.ycombinator.com > hn.html
That way I am sure I don't overwrite some other file I already have in this folder with the same name which wget will give it.
- cooper12 12y agowget won't overwrite files by default. Instead it will append .1 to the filename and so forth. You'd have to use the -c/--continue option.