Sun Management Center Change Manager 1.0 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:

    • .flar for archives

    • .miniroot for boot images

    • .bmft for manifests

    • .brul for audit rules files

    • .txt for reports

    • .cmsp for shared profiles

    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