Listing The Files In A Directory; Creating A Directory; Deleting An Existing Directory; Moving Files - Cisco AP775A - Nexus Converged Network Switch 5010 Configuration Manual

Cli software configuration guide
Hide thumbs Also See for AP775A - Nexus Converged Network Switch 5010:
Table of Contents

Advertisement

Listing the Files in a Directory

Listing the Files in a Directory
The dir command displays the contents of the current directory or the specified directory. The syntax for this
command is dir directory or dir filename.
This example shows how to list the files on the default volatile file system:
switch# dir volatile:
Usage for volatile://sup-local
20971520 bytes free
20971520 bytes total

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 name.
This example creates a directory called test in the bootflash directory.
switch# mkdir bootflash:test
This example creates a directory called test in the current directory.
switch# mkdir 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 name.
This example deletes the directory called test in the bootflash directory:
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 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 moved
Caution
file.
This example moves the file called samplefile from the root directory to the mystorage directory:
switch# move bootflash:samplefile bootflash:mystorage/samplefile
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
50
0 bytes used
Do you want to continue (y/n)?
Do you want to continue (y/n)?
Configuring the Switch
[y] y
[y] y
OL-16597-01

Advertisement

Table of Contents
loading

Table of Contents