Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mvdir(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir

mv

rename

mvdir

PURPOSE

     Moves (renames) a directory.

SYNOPSIS
     mvdir [ [ directory1 ] [ directory2 ] ]

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:

       mvdir  appendixes  manual

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

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

RELATED INFORMATION

     The following commands:  "mkdir" and "mv."

     The rename system call  in AIX Operating System Technical
     Reference.

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