cd

To change the current working directory in the device file system, use the cd command.

cd [filesystem:] [//server/] directory

Syntax Description

filesystem:

(Optional) Name of the file system. Valid values are bootflash or volatile.

//server/

(Optional) Name of the server. Valid values are ///, //module-1/, //sup-1/, //sup-active/, or //sup-local/. The double slash (//) is required.

directory

Name of the destination directory. The directory name is case sensitive.



Note There can be no spaces in the filesystem://server/directory string. Individual elements of this string are separated by colons (:) and slashes (/).


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Usage Guidelines

Use the pwd command to verify the current working directory.

Examples

This example shows how to change the current working directory on the current file system:

switch# cd my-scripts  

This example shows how to change the current working directory to another file system:

switch# cd volatile:  

Related Commands

Command
Description

pwd

Displays the current working directory name.