Chapter 2 file system commands, 1 cd, 2 copy – PLANET XGS3-24040 User Manual
Page 89: Copy
XGS3 Command Guide
2-89
Chapter 2 File System Commands
2.1 cd
Command:
cd <directory>
Function:
Change the working directory for the storage device.
Parameters:
Command Mode:
Admin Mode.
Default Settings:
The default working directory is Flash.
Usage Guide:
After this command implemented, the current storage device will switch to the new working directory, which can be
viewed by the “pwd” command.
Example:
Change the working directory of the current storage device to flash.
Switch#cd flash:
Switch#pwd
flash:/
Switch#
2.2 copy
Command:
copy <source-file-url > <dest-file-url>
Function:
Copy a designated file on the switch and store it as a new file.
Parameters:
backup main-control boardcards and line cards under IMG mode, URLs of the source file and the destination file
should take such a form as described in the following requirements.
1. The prefix of the source file URL should be in one of the following forms:
starting with “flash:/”
“ftp://username:pass@server-ip/file-name”
“tftp://server-ip/file-name”
2. The prefix of the destination file URL should be in one of the following forms:
starting with “flash:/”
“ftp://username:pass@server-ip/file-name”
“tftp://server-ip/file-name”
Command Mode: