Emergency Shell Commands; Copy; Delete - HP 6125XLG Command Reference Manual

Blade
Table of Contents

Advertisement

Emergency shell commands

Unless otherwise stated, a file name or path argument in this document is case insensitive, and must
indicate the storage medium and contain no slot information. The path information might contain
multiple levels of directories, and each can include 1 to 255 characters. The file name alone (without the
path information) can include 1 to 255 characters. The argument, including the storage medium, the
path information, and the file name, can include 1 to 51 1 characters.
Examples in this chapter use the flash memory. Your device might have a different storage medium.

copy

Use copy to copy a file.
Syntax
copy fileurl-source fileurl-dest
Views
User view
Parameters
fileurl-source: Specifies the name of the file to be copied.
fileurl-dest: Specifies the name of the destination file or directory. If you specify a destination directory,
the system copies the file to the specified directory and uses the name of the source file as the file name.
Usage guidelines
If the destination file already exists, the system prompts whether or not to overwrite it.
Examples
# Copy the test.cfg file and save it in the same directory as testbackup.cfg.
<boot> copy flash:/testcfg.cfg flash:/testbackup.cfg
Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y
Start to copy flash:/test.cfg to flash:/testbackup.cfg...Done.
# Copy the test.cfg file and save it in the same directory by using the name of existing file testbackup.cfg.
(The existing file is overwritten.)
<boot> copy flash:/testcfg.cfg flash:/testbackup.cfg
Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y
flash:/testbackup.cfg already exists. Overwrite it?[Y/N]:y
Start to copy flash:/test.cfg to flash:/testbackup.cfg...Done.

delete

Use delete to permanently delete a file.
Syntax
delete file-url
169

Advertisement

Table of Contents
loading

Table of Contents