mvdir(1M)mvdir(1M)NAMEmvdir - move a directory
SYNOPSIS
dir newdir
DESCRIPTION
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.
refuses to move dir if the path specified by newdir would be a descenā
dent 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 which is prohibited.
does not allow directory to be moved.
Only users who have appropriate privileges can use
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
AUTHOR
was developed by OSF and HP.
SEE ALSOcp(1), mkdir(1), mv(1).
STANDARDS CONFORMANCEmvdir(1M)