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
1-33
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 1 CLI Overview
Using the File System
•
Displaying the Current Directory, page 1-33
•
Listing the Files in a Directory, page 1-33
•
Creating a New Directory, page 1-34
•
Deleting an Existing Directory, page 1-34
•
Moving Files, page 1-34
•
Copying Files, page 1-35
•
Deleting Files, page 1-35
•
Displaying File Contents, page 1-35
•
Saving Command Output to a File, page 1-36
•
Compressing and Uncompressing Files, page 1-36
•
Displaying the Last Line in a File, page 1-37
•
Executing Commands Specified in a Script, page 1-37
•
Setting the Delay Time, page 1-38
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