move

This command moves a file from one directory to another.

Syntax

move [-f] source destination

Parameters

-f
Overwrites an existing file when one with the same name exists. When omitted, an attempt to save a file with the same name as an existing file results in a confirmation prompt.
source
destination
Specifies the locations as a URL that identifies the source file and target destination in the directory:///file format.

Guidelines

You can use the move command to transfer a file to or from a directory.

Restriction: You cannot use the move command to copy a file from the private cryptographic area, such as the cert: directory.

Examples

  • Move a file from the config: directory to the store: directory.
    (config)# move config:///startup-config store:///archiveConfig-10
    
  • Rename a file.
    (config)# move config:///startup-config config:///archiveConfig-10