Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought



MV(1)           DOMAIN/IX Reference Manual (SYS5)           MV(1)



NAME
     mv - move files

USAGE
     mv [ -f ] file1 [ file2 ... ] target

DESCRIPTION
     Mv moves file(s) to a specified target. Under no cir-
     cumstances can any of the files being manipulated be the
     same as the target, so take care when using shell metachar-
     acters.  If target is a directory, then the file(s) will be
     moved to that directory.  If target is a file, its old con-
     tents are replaced by the contents of file.

     If mv determines that the mode of target forbids writing, it
     prints the mode, asks for a response, and reads the standard
     input for one line.  If that line begins with y, the opera-
     tion occurs if it is permissible; if not, mv exits.  If the
     standard input is not a terminal, or if the -f (force)
     option is used, the mv will be performed, if permitted, with
     no questions asked.

     If file1 is a directory, the directory rename occurs only if
     the two directories have the same parent; file1 is renamed
     target. If file1 is a file and target is a link to another
     file with links, the other links remain and target becomes a
     new file.  If target is not a file, mv creates a new file
     with the same mode as file1.  The owner and group of target
     are those of the user.  If target is a file, moving a file
     into target does not change target's mode, owner, or group.
     Cp sets the last modification time of target, (and last
     access time, if target did not exist). If target is a link
     to a file, all links remain and the file is changed.

OPTIONS
     -f        Force the operation if it is permissable.  Do not
               ask for confirmation.

RELATED INFORMATION
     chmod(1)
     cp(1)
     cpio(1)
     rm(1)












Printed 1/27/86                                              MV-1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026