Send documentation comments to mdsfeedback-doc@cisco.com
1-34
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 1 CLI Overview
Using the File System
• Compressing and Uncompressing Files, page 1-37
• Displaying the Last Line in a File, page 1-38
• Executing Commands Specified in a Script, page 1-38
• Setting the Delay Time, page 1-39
Setting the Current Directory
The cd command changes the current directory level to a specified directory level. CLI defaults to the
volatile: files system. This command expects a directory name input.
Tip Any file saved in the volatile: file system will be erased when the switch reboots.
The syntax for this command is cd directory name
This example changes the current directory to the mystorage directory that resides in the slot0 directory:
switch# cd slot0:mystorage
This example changes the current directory to the mystorage directory that is in the current directory.
switch# cd mystorage
If the current directory is slot0:mydir, this command changes the current directory to
slot0:mydir/mystorage.
Displaying the Current Directory
The pwd command displays the current directory location. This example changes the directory and
displays the current directory.
switch# cd bootflash:
switch# pwd
bootflash:
Listing the Files in a Directory
The dir command displays the contents of the current directory or the specified directory. The syntax
for this command is dir directory or file name
This example shows how to list the files on the default volatile: file system:
switch# dir
Usage for volatile: filesystem
0 bytes total used
20971520 bytes free
20971520 bytes available
Creating a New Directory
The mkdir command creates a directory at the current directory level or at a specified directory level.
The syntax for this command is mkdir directory name