EasyManua.ls Logo

Cisco Nexus 5000 Series - Copying Files; Deleting an Existing Directory; Moving Files

Cisco Nexus 5000 Series
660 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send feedback to nx5000-docfeedback@cisco.com
1-24
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring the Switch
Using Switch File Systems
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 bootflash directory:
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 non empty 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

Table of Contents

Other manuals for Cisco Nexus 5000 Series

Related product manuals