Table of Contents
Previous Utility | List of External Utilities | Next Utility

Mv


        Move Files or Directories

Usage:  mv [-cfilmsh-] source1 [ source2 ... ] destination

   mv is an intelligent file or directory mover.  It's able to
   move either files or directories regardless of whether the
   source and destination are in the same directory or even the
   same drive.

   Files being moved anywhere on the same partition are simply
   renamed; the data stays where it is.  Moving a file to a
   different partition is done by copying the file and then
   deleting the original.  If you move a directory but it keeps
   the same parent, that also is a simple rename.  Moving a
   directory to a new parent is done by a mkdir in the new parent
   and moving all the directory contents using the same "rename
   where possible" strategy recursively.

   Any security descriptor and any access control list attached
   to a source file or directory is normally copied to the destination
   if possible.  Under Windows 9x or if the destination filesystem
   does not support ACLs, that's not possible and the security
   information will be lost.  This is not considered an error and
   no diagnostic message is given.

Options:

  -c    Continue even if errors are encountered attempting to
        process some input files or directories.
  -f    Force read-only files to be overwritten.
  -i    Interactive:  ask before moving each object on the command
        line.
  -l    Logging is on:  display the name of each file or directory
        as it's moved.
  -m    Merge sub-directories of same name in source and destination.
  -s    Simple move.  Do not copy security descriptors and access
        control lists.

  -h    Help (this screen.)
  --    End of options.  (Useful if filenames start with "-".)



Previous Utility | List of External Utilities | Next Utility
Table of Contents



Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.