Previous Topic

Next Topic

Rename a directory (rename/directory or mvdir)

The RENAME command will change the name of a directory.

Windows/OpenVMS Format:

rename/directory old_directory_name new_directory_name [/qualifiers]

UNIX/Linux Format:

mvdir old_directory_name new_directory_name [-qualifiers]

Qualifier Summary

/[no]log or -[no]log

/[no]confirm or -[no]confirm

/node or -node = target_node

Examples

Windows:

Schedule> rename/directory \cbrown\ \kanderson\ /confirm 
 Rename \cbrown\ to \kanderson\  [y/n] (y): yes 

OpenVMS

Schedule> rename/directory [cbrown] [kanderson] /confirm 
 Rename [cbrown] to [kanderson]  [y/n] (y): yes 

UNIX/Linux:

Schedule> mvdir /cbrown/ /kanderson/ -confirm 
 Rename /cbrown/ to /kanderson/  [y/n] (y): yes 

Qualifiers


/[no]confirm or -[no]confirm

CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.

/hostname or -node =hostname

The qualifier specifies what node (either local or remote) you want the operation performed on.

/[no]log or -[no]log

The LOG qualifier causes each completed operation to issue a note to the user.

See Also

DIRECTORY commands

Create a new directory (create/calendar or mkdir)

Delete a directory (delete/directory or rmdir)

Display directories (directory/directory or lsdir)

Modify a directory's properties (modify/directory or chdir)