Creating A Directory; Deleting An Existing Directory; Moving Files - Cisco DS-X9530-SF1-K9 - Supervisor-1 Module - Control Processor Configuration Manual

Mds 9000 family
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 .

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 intent 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.
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 root directory of the slot0: file system to the
mystorage directory.
switch# move slot0:samplefile slot0:mystorage/samplefile
This example moves a file from the current directory level.
switch# move samplefile mystorage/samplefile
If the current directory is slot0:mydir, this command moves slot0:mydir/samplefile to
slot0:mydir/mystorage/samplefile.
Cisco MDS 9000 Family Configuration Guide
2-24
Do you want to continue (y/n)?
Do you want to continue (y/n)?
Chapter 2
Before You Begin
[y] y
[y] y
OL-6973-03, Cisco MDS SAN-OS Release 2.x

Advertisement

Table of Contents
loading

Table of Contents