Unix/Linux Go Back    

Unix Version 7 - man page for mv (v7 section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

MV(1)											    MV(1)

       mv  -  move or rename files and directories

       mv file1 file2

       mv file ... directory

       Mv moves (changes the name of) file1 to file2.

       If  file2  already exists, it is removed before file1 is moved.	If file2 has a mode which
       forbids writing, mv prints the mode (see chmod(2)) and reads the standard input to  obtain
       a line; if the line begins with y, the move takes place; if not, mv exits.

       In the second form, one or more files are moved to the directory with their original file-

       Mv refuses to move a file onto itself.

       cp(1), chmod(2)

       If file1 and file2 lie on different file systems, mv 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 lost.

       Mv should take -f flag, like rm, to suppress the question if the target exists and is  not

Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 03:58 PM.