Moving Files; Copying Files; Deleting Files - Cisco AJ732A - MDS 9134 Fabric Switch Configuration Manual

Cisco nexus 5000 series switch cli software configuration guide, nx-os 4.0(1a)n1 (ol-16597-01, january 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Using Switch File Systems
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
switch# rmdir bootflash:test
This is a directory.
The delete command can also delete empty and nonempty directories. When you enter 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# delete test
This is a directory.
If the current directory is bootflash:mydir, this command deletes the bootflash:mydir/test directory.

Moving Files

The move command removes a file from the source directory and places it in the destination directory.
Caution
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 to the mystorage directory:
switch# move bootflash:samplefile bootflash:mystorage/samplefile
This example moves a file from the current directory level:
switch# move samplefile mystorage/samplefile
If the current directory is bootflash:mydir, this command moves bootflash:mydir/samplefile to
bootflash:mydir/mystorage/samplefile.

Copying Files

The copy command copies a file between file systems within a switch.
Note
Use the dir command to ensure that enough space is available in the target file system. If enough space
is not available, use the delete command to remove unneeded files.
This example copies the file called samplefile from the root directory to the mystorage directory:
switch# copy bootflash:samplefile bootflash:mystorage/samplefile
This example copies a file from the current directory level:
switch# copy samplefile mystorage/samplefile
If the current directory is bootflash:mydir, this command copies bootflash:mydir/samplefile to
bootflash:mydir/mystorage/samplefile.

Deleting Files

The delete command deletes a specified file or the specified directory and all its contents.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
3-24
Do you want to continue (y/n)?
Do you want to continue (y/n)?
Chapter 3
Configuring the Switch
[y] y
[y] y
OL-16597-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents