Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
3-24
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 3 Configuring the Switch
Using Switch File Systems
switch# rmdir bootflash:test
This is a directory. Do you want to continue (y/n)? [y] y
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. Do you want to continue (y/n)? [y] y
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.