Copy - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Description
Use the cd command to enter a specified directory on the Ethernet switch.
The default directory when a user logs onto the switch is the root directory of Flash memory.
Example
# Enter the directory named test from the root directory.
<Sysname> cd test
# Return to the upper directory. Note that keyword cd is followed by a space.
<Sysname> cd ..
After modifying the working directory using the cd command, you can use the pwd command to display
the current working directory.

copy

Syntax
copy fileurl-source fileurl-dest
View
User view
Parameter
fileurl-source: Name of the source file.
fileurl-dest: Name of the target file.
Description
Use the copy command to copy a file.
If the fileurl-dest argument identifies an existing file, the existing file will be overwritten after the
command is executed successfully.
If the path, rather than the name of the target file is specified, the source file name is used as the target
file name by default.
Example
# Copy file config.cfg from the root directory to directory test, and save the file using name 1.cfg.
<Sysname> copy flash:/config.cfg flash:/test/1.cfg
Copy unit1>flash:/config.cfg to unit1>flash:/test/1.cfg?[Y/N]:y
...
%Copy file unit1>flash:/config.cfg to unit1>flash:/test/1.cfg...Done.
# Copy file config.cfg from the root directory to directory test, and save the file using the original file
name.
<Sysname> copy flash:/config.cfg flash:/test
Copy unit1>flash:/config.cfg to unit1>flash:/test/config.cfg?[Y/N]:y
...
%Copy file unit1>flash:/config.cfg to unit1>flash:/test/config.cfg...Done.
1-2

Advertisement

Table of Contents
loading

Table of Contents