Moving Files; Copying Files; Deleting Files - Cisco N5010P-N2K-BE Software Configuration Manual

Nx-os software configuration guide
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
This example deletes the directory called test in the current directory:
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.
If a file with the same name already exists in the destination directory, that file is overwritten by the
Caution
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.
Use the dir command to ensure that enough space is available in the target file system. If enough space
Note
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.
This example shows how to delete a file from the current working directory:
switch# delete dns_config.cfg
This example deletes the entire bootflash: directory and all its contents:
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
3-24
Do you want to continue (y/n)?
Chapter 3
Configuring the Switch
[y] y
OL-16597-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nexus 5000 series

Table of Contents