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-23
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 3 Configuring the Switch
Using Switch File Systems
This command exchanges the current directory to the root directory on the bootflash: file system:
switch# cd bootflash:
This example changes the current directory to the mystorage directory that resides in the current
directory:
switch# cd mystorage
Displaying the Current Directory
The pwd command displays the current directory location. This example changes the directory and
displays the current directory:
switch# cd bootflash:
switch# pwd
bootflash:
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
Usage for volatile: filesystem
0 bytes total used
20971520 bytes free
20971520 bytes available
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 directory name.
This example creates a directory called test in the bootflash: directory.
switch# mkdir bootflash:test
This example creates a directory called test at the current directory level.
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 directory name.
This example deletes the directory called test in the bootflash directory: