1MV(1)                       General Commands Manual                      MV(1)
2
3
4

NAME

6       mv  -  move or rename files and directories
7

SYNOPSIS

9       mv file1 file2
10
11       mv file ... directory
12

DESCRIPTION

14       Mv moves (changes the name of) file1 to file2.
15
16       If file2 already exists, it is removed before file1 is moved.  If file2
17       has a mode which forbids writing, mv prints the mode (see chmod(2)) and
18       reads  the  standard input to obtain a line; if the line begins with y,
19       the move takes place; if not, mv exits.
20
21       In the second form, one or more files are moved to the  directory  with
22       their original file-names.
23
24       Mv refuses to move a file onto itself.
25

SEE ALSO

27       cp(1), chmod(2)
28

BUGS

30       If file1 and file2 lie on different file systems, mv must copy the file
31       and delete the original.  In this case the owner name becomes  that  of
32       the  copying  process  and any linking relationship with other files is
33       lost.
34
35       Mv should take -f flag, like rm, to suppress the question if the target
36       exists and is not writable.
37
38
39
40                                                                         MV(1)
Impressum