Commands.app

mv

File Management

Move or rename files and directories

Options & Flags
Available options for this command
-i

Prompt before overwrite

-v

Verbose output

-n

Do not overwrite existing file

Examples
Common usage examples

Rename a file

mv oldname.txt newname.txt

Move file to another directory

mv file.txt /path/to/destination/

Move all .txt files with confirmation

mv -i *.txt documents/
Related Commands
You might also find these useful