R2511-HP MSR Router Series Fundamentals Command Reference(V5)
130
..: Returns to an upper directory. If the current working directory is the root directory, or if no upper
directory exists, the current working directory does not change when the cd .. command is executed. No
online help information is available for this keyword.
/: Returns to the root directory of the storage medium. No online help information is available for this
keyword.
Examples
# Enter the test folder after logging in to the device.
<Sysname> cd test
# Return to the upper directory. (A space is required after the keyword cd.)
<Sysname> cd ..
# Return to the root directory.
<Sysname> cd /
After you change the current directory by using the cd command, you can use the pwd command to view
the path of the current working directory.
copy
Use copy to copy a file.
Syntax
copy fileurl-source fileurl-dest
Views
User view
Default command level
3: Manage level
Parameters
fileurl-source: Name of the source file.
fileurl-dest: Name of the target file or folder.
Usage guidelines
If you specify a target folder, the system will copy the file to the specified folder and use the name of the
source file as the file name.
Examples
# Copy file testcfg.cfg in the current folder and save it as testbackup.cfg.
<Sysname> copy testcfg.cfg testbackup.cfg
Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y
....
%Copy file flash:/test.cfg to flash:/testbackup.cfg...Done.
# Copy file 1.cfg in the test folder on the Flash to the testbackup folder in the CF card, and save it as
1backup.cfg.
<Sysname> copy flash:/test/1.cfg cfa0:/testbackup/1backup.cfg
Copy flash:/test/1.cfg to cfa0:/testbackup/1backup.cfg?[Y/N]:y
%Copy file flash:/test/1.cfg to cfa0:/testbackup/1backup.cfg...Done.










