Emergency Shell Commands; Copy; Delete - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
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 511 characters.
Examples in this chapter use the flash memory. The 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, 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 flash:/test.cfg to flash:/testbackup.cfg.
<boot> copy flash:/test.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 flash:/test.cfg to flash:/testbackup.cfg. Overwrite the existing file that has the same name as
the destination file.
<boot> copy flash:/test.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
Views
User view
202

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents