1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/mv.md
2021-04-01 18:54:26 +03:00

24 lines
581 B
Markdown

# mv
> Move or rename files and directories.
> More information: <https://www.gnu.org/software/coreutils/mv>.
- 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}}`