mv(1)mv(1)Namemv - move or rename files
Syntaxmv [-i] [-f] [-] file1 file2
mv [-i] [-f] [-] file... directory
The command moves (changes the name of) file1 to file2.
If file2 already exists, it is removed before file1 is moved. When you
are using from a terminal, and you do not have write permission on
file2, the command prompts for confirmation before overwriting the
file. For further information, see
In the second form, one or more files (plain files or directories) are
moved to the directory with their original file-names.
The command refuses to move a file onto itself.
- Interprets all following arguments as file names to allow file
names starting with a minus.
-f Force. This option overrides any mode restrictions or the -i
-i Interactive mode. Whenever a move is to supercede an existing
file, the user is prompted by the name of the file followed by a
question mark. If he answers with a line starting with 'y', the
move continues. Any other reply prevents the move from occurring.
If file1 and file2 lie on different file systems, must copy the file
and delete the original. In this case the owner name becomes that of
the copying process and any linking relationship with other files is
See Alsocp(1), ln(1)mv(1)