MVDIR(1M)
NAME
mvdir − move a directory
SYNOPSIS
/etc/mvdir dirname name
HP-UX COMPATIBILITY
Level: HP-UX/NUCLEUS
Origin: System V
Native Language Support:
8−bit filenames.
Remarks: Not supported on the Integral PC.
DESCRIPTION
Mvdir moves and/or renames directories within a file system. Dirname must be a directory; name must not exist. Neither name may be a sub-set of the other (/x/y cannot be moved to /x/y/z, nor vice versa).
The directory specified by name cannot be a subdirectory of that specified by dirname. The directory specified by dirname may be a subdirectory of that specified by name, but the notations . and .. must be used in naming the directories, because mvdir does not allow the names of the directories to have the property that one is a subdirectory of the other.
Only the super-user can use mvdir.
EXAMPLE
The following moves the directory specified by /x/y/z to /a/b/c:
mvdir /x/y/z /a/b/c
SEE ALSO
BUGS
The restriction on names is intended to prevent creation of a (cyclic) sub-tree that cannot be reached from the root. The test is strictly by name, thus creating such a sub-tree is still possible. The super-user is cautioned to be very careful in his use of the names . and .. while moving directories.
Hewlett-Packard — last mod. May 11, 2021