-O option replace file path
wget https://gist.githubusercontent.com/sungle3737/fbb241355d747f2a75e36e9e6ba61166/raw/f5c7a71df6400d7805dbdc39ff17435f07ca2355/.zshrc -O ~/.zshrc
-P option folder path
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P /tmp
How to allow wget to overwrite files
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Using wget command, how do I allow/instruct to overwrite my local file everytime, irrespective of how many times I invoke.
https://serverfault.com/questions/171369/how-to-allow-wget-to-overwrite-files

Seonglae Cho