Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mvdir(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir

mv, move

rename



MVDIR(1,C)                  AIX Commands Reference                   MVDIR(1,C)



-------------------------------------------------------------------------------
mvdir



PURPOSE

Moves a directory.

SYNTAX


/etc/mvdir --- directory1 --- directory 2 ---|


DESCRIPTION

The mvdir command renames directories within a file system.  To use mvdir, you
must have write permission to directory1 and directory2 and to the parent
directories of directory1 and directory2.  The directory1 parameter must name
an existing directory.  If directory2 does not exist, directory1 is moved to
directory2.  If directory2 exists, directory1 becomes a subdirectory of
directory2.  Neither directory can be a subset of the other.

Note:  Directory1 and directory2 may be the names of files.  If directory2 is a
       file name, it is replaced with directory1.

EXAMPLE

To rename or move a directory to another location:

  /etc/mvdir  appendixes  manual

If "manual" does not exist, this renames the directory "appendixes" to
"manual".  You can also rename a directory with the mv command.

If a directory named "manual" already exists, this command moves "appendixes"
and its contents to "manual/appendixes".  In other words, "appendixes" becomes
a subdirectory of "manual".

RELATED INFORMATION

See the following commands:  "mkdir" and "mv, move."

See the rename system call in AIX Operating System Technical Reference.










Processed November 8, 1990        MVDIR(1,C)                                  1



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