Setting The Current Directory; Displaying The Current Directory; Listing The Files In A Directory; Creating A New Directory - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Using the File System
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

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.
Any file saved in the volatile: file system will be erased when the switch reboots.
Tip
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

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
Cisco MDS 9000 Family Command Reference
1-34
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
Usage for volatile: filesystem
20971520 bytes free
20971520 bytes available
0 bytes total used
Chapter 1
CLI Overview
OL-8413-07, Cisco MDS SAN-OS Release 3.x

Advertisement

Table of Contents
loading

Table of Contents