The mv command is used to move a file from a given path to another. It can also be used to rename a file by moving it into the same directory, but with a different name.
It stands for MoVe.
mv [-finv] source target


  • -f: Force overwriting file(s) without asking a confirmation.
  • -i: Request confirmation before overwriting the file(s).
  • -n: Don't allow to overwrite existing file(s).
  • -v: Cause mv to be verbose, showing files after they are moved.