copy
To copy a file from a source to a destination, use the copy command in boot loader mode.
copy filesystem:/source-file-url filesystem:/destination-file-url
Syntax Description
Alias for a file system. Use usbflash0: for USB memory sticks.
filesystem:
Path (directory) and filename (source) to be copied.
/source-file-url
Path (directory) and filename of the destination.
/destination-file-url
Command Default
No default behavior or values.
Command Modes
Boot loader
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
Filenames and directory names are case sensitive.
Directory names are limited to 127 characters between the slashes (/); the name cannot contain control
characters, spaces, deletes, slashes, quotes, semicolons, or colons.
Filenames are limited to 127 characters; the name cannot contain control characters, spaces, deletes, slashes,
quotes, semicolons, or colons.
If you are copying a file to a new directory, the directory must already exist.
Examples
This example shows how to copy a file at the root:
Device: copy usbflash0:test1.text usbflash0:test4.text
File "usbflash0:test1.text" successfully copied to "usbflash0:test4.text"
You can verify that the file was copied by entering the dir filesystem: boot loader command.
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
911
copy