tldr/pages/common/mv.md
2018-10-24 03:48:41 +05:30

516 B

mv

Move or rename files and directories.

  • Move files in arbitrary locations:

mv {{source}} {{target}}

  • Do not prompt for confirmation before overwriting existing files:

mv -f {{source}} {{target}}

  • Prompt for confirmation before overwriting existing files, regardless of file permissions:

mv -i {{source}} {{target}}

  • Do not overwrite existing files at the target:

mv -n {{source}} {{target}}

  • Move files in verbose mode, showing files after they are moved:

mv -v {{source}} {{target}}