Manual / mv
mv(1)
| MV(1) | General Commands Manual | MV(1) |
NAME
mv - move or rename files and directories
SYNOPSIS
mv [-fi] source ... destination
DESCRIPTION
Mv changes the name of a file. If the new name is a directory, the file is moved to that directory under its old name. With several sources, the last operand must be a directory.
A move within one parent directory uses ProDOS RENAME. Across directories or volumes, maux copies the data and then removes the source. Directory trees are handled recursively; replacement of a nonempty destination directory is refused.
- -f
- Do not prompt before replacing an existing destination.
- -i
- Prompt before replacement; only y or Y proceeds.
The last -i or -f wins. A declined move is not an error.
FILES
/usr/man/MV this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 for successful or declined moves, 1 for move failures, 2 for usage errors.
BUGS
A cross-directory move is not atomic, even on one volume. A copy or source-removal failure can leave both source and destination; inspect both before retrying.
| September 19, 2026 | maux |