Source
Target
Result
File
name (nonexistent)
Rename file to name.
File
Existing file
Overwrite existing file with source file.
Directory
name (nonexistent)
Rename directory to name.
Directory
Existing directory
Move directory to be a subdirectory of existing directory.
One or more files
Existing directory
Move files to directory.
The mv command is often aliased as mv -i in the