Chapter 2 file system commands, 1 cd, 2 copy – PLANET XGS3-24042 User Manual

Page 105: Chapter 2 file system commands -105, Copy

Advertising
background image

XGS3 Command Guide

2-105

Chapter 2 File System Commands

2.1 cd

Command:

cd <directory>

Function:

Change the working directory for the storage device.

Parameters:

<directory> is the sub-directory name, a sequence of consecutive characters whose length ranges from 1 to 80.

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:

<source-file-url> is the source file; <dest-file-url> is the destination file. When users operate on files stored in

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:/”

Advertising
This manual is related to the following products: