Listing The Files In A Directory; Creating A Directory; Deleting An Existing Directory; Moving Files - HP Cisco MDS 9020 - Fabric Switch Configuration Manual

Cisco mds 9000 family cli configuration guide, release 3.x (ol-16184-01, april 2008)
Hide thumbs Also See for Cisco MDS 9020 - Fabric Switch:
Table of Contents

Advertisement

Chapter 2
Before You Begin
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 dir filename.
This example shows how to list the files on the default volatile: file system.
switch# dir

Creating a 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 is a directory.
The delete command is also capable of deleting empty and non-empty directories. When you issue this
command a warning is displayed to confirm your intention to delete the directory.
This example deletes the directory called test at the current directory level.
switch# rmdir test
This is a directory.
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.
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Usage for volatile: filesystem
0 bytes total used
20971520 bytes free
20971520 bytes available
Do you want to continue (y/n)?
Do you want to continue (y/n)?
Using Switch File Systems
[y] y
[y] y
Cisco MDS 9000 Family CLI Configuration Guide
2-29

Advertisement

Table of Contents
loading

Table of Contents