This article explains about mv command with an example in unix.
-f mv will move the file(s) without prompting even if it is writing over an existing target. Note that this is the default if the standard input is not a terminal.-i Prompts before overwriting another file.