Listing The Files In A Directory; Creating A New Directory; Deleting An Existing Directory; Moving Files - Cisco MDS 9124 - Fabric Switch Reference

Cisco mds 9000 family command reference - cisco mds san-os release 3.0(1) through 3.3(1a) (ol-16217-01, april 2008)
Hide thumbs Also See for Cisco MDS 9124 - Fabric Switch:
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

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
This example creates a directory called test in the slot0 directory.
switch# mkdir slot0:test
This example creates a directory called test at the current directory level.
switch# mkdir test
If the current directory is slot0:mydir, this command creates a directory called
slot0:mydir/test.

Deleting an Existing Directory

The rmdir command deletes an existing directory at the current directory level or at a specified directory
level. The directory must be empty to be deleted.
The syntax for this command is rmdir directory name
This example deletes the directory called test in the slot0 directory.
switch# rmdir slot0:test
This example deletes the directory called test at the current directory level.
switch# rmdir test
If the current directory is slot0:mydir, this command deletes the slot0:mydir/test
directory.

Moving Files

The move command removes a file from the source directory and places it in the destination directory.
If a file with the same name already exists in the destination directory, that file is overwritten by the
moved file.
This example moves the file called samplefile from the slot0 directory to the mystorage directory.
switch# move slot0:samplefile slot0:mystorage/samplefile
This example moves a file from the current directory level.
Cisco MDS 9000 Family Command Reference
1-34
Usage for volatile: filesystem
0 bytes total used
20971520 bytes free
20971520 bytes available
Chapter 1
CLI Overview
OL-16217-01, Cisco MDS SAN-OS Release 3.x

Advertisement

Table of Contents
loading

Table of Contents