39 file operation commands, 1 cd, 2 copy – CANOGA PERKINS 9175 Command Reference User Manual
Page 654
![background image](/manuals/651401/654/background.png)
CanogaOS Command Reference
39-1
39 File Operation Commands
39.1 cd
To change the default directory or file system, use the cd command in EXEC mode.
Command Syntax
cd [filesystem:]
filesystem:
(Optional) The directory or file systems followed by a colon.
Default
The initial default file system is flash:. If you do not specify a directory on a file system, the default is the
root directory on that file system.
Command Mode
EXEC
Usage
For all EXEC commands that have an optional filesystem argument, the system uses the file system
specified by the cd command when you omit the optional filesystem argument. For example, the dir
EXEC command, which displays a list of files on a file system, contain an optional filesystem argument.
When you omit this argument, the system lists the files on the file system specified by the cd command.
Examples
In the following example, the cd command is used to set the default file system to the Flash memory
card:
Switch# pwd
flash:/
Switch# cd boot
Switch# pwd
flash:/boot
Related Commands
dir
ls
pwd
39.2 copy
To change the default directory or file system, use the cd command in Privileged EXEC mode.
Command Syntax