maux
Star on GitHub Buy me a coffee

Manual / mv

mv(1)

MV(1) General Commands Manual MV(1)

mv - move or rename files and directories

mv [-fi] source ... destination

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.

Do not prompt before replacing an existing destination.
Prompt before replacement; only y or Y proceeds.

The last -i or -f wins. A declined move is not an error.

/usr/man/MV this page

cp(1), rm(1), licenses(1)

Exit status is 0 for successful or declined moves, 1 for move failures, 2 for usage errors.

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