*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> mvdir (1m)              


 mvdir(1M)                                                         mvdir(1M)

 NAME    [Toc]    [Back]
      mvdir - move a directory

 SYNOPSIS    [Toc]    [Back]
      /usr/sbin/mvdir dir newdir

 DESCRIPTION    [Toc]    [Back]
      mvdir moves one directory tree into another existing directory (within
      the same file system), or renames a directory without moving it.

      dir must be an existing directory.

      If newdir does not exist but the directory that would contain it does,
      dir is moved and/or renamed to newdir.  Otherwise, newdir must be an
      existing directory not already containing an entry with the same name
      as the last pathname component of dir.  In this case, dir is moved and
      becomes a subdirectory of newdir.  The last pathname component of dir
      is used as the name for the moved directory.

      mvdir refuses to move dir if the path specified by newdir would be a
      descendent directory of the path specified by dir.  Such cases are not
      allowed because cyclic sub-trees would be created as in the case, for
      example, of mvdir x/y x/y/z/t which is prohibited.

      mvdir does not allow directory . to be moved.

      Only users who have appropriate privileges can use mvdir.

    International Code Set Support
      Single- and multi-byte character code sets are supported.

 AUTHOR    [Toc]    [Back]
      mvdir was developed by OSF and HP.

 SEE ALSO    [Toc]    [Back]
      cp(1), mkdir(1), mv(1).

      mvdir: SVID2, SVID3

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
mv FreeBSD move files
mv OpenBSD move files
rmv IRIX relative move
vm_page_rename FreeBSD move a page
rpmv IRIX relative polygon move
uio OpenBSD move data described by a struct uio
uiomove OpenBSD move data described by a struct uio
uiomove NetBSD move data described by a struct uio
mv Linux move (rename) files
tt_file_move HP-UX move objects from one file to another
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service