Sun Management Center Change Manager 1.0.1 Administration Guide

How to Rename a File or Folder (Command Line)

The rename action can be taken on one file or folder at a time.

  1. Determine which file or folder to rename.

    For example, rename the web-server/apache folder to be web-server/ApacheServer.

  2. Rename the file or folder.


    $ changemgr filemove [ -u username ] [ -p file ] old_relfilepath.type \
    new_relfilepath.type
    
    relfilepath

    Specifies the path to a file or folder. The path is relative to the top of the Change Manager repository.

    .type

    Specifies the file name suffix that represents the file type. File type suffixes are as follows:

    • .bmft for manifests

    • .brul for audit rules files

    • .cmsp for shared profiles

    • .flar for archives

    • .miniroot for boot images

    • .txt for reports

    Folders do not use a file suffix.

    For descriptions of the other options, see How to Create a Folder (Command Line).

Example—Renaming a File or Folder

Suzi renames the web-server/apache folder to be web-server/ApacheServer.


$ changemgr filemove /web-server/apache \
/web-server/ApacheServer