mv
File ManagementMove or rename files and directories
Options & Flags
Available options for this command
-iPrompt before overwrite
-vVerbose output
-nDo not overwrite existing file
Examples
Common usage examples
Rename a file
mv oldname.txt newname.txtMove file to another directory
mv file.txt /path/to/destination/Move all .txt files with confirmation
mv -i *.txt documents/