
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
1-23
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring the Switch
Using Switch File Systems
Setting the Current Directory
The
cd
command changes the current directory level to a specified directory level. The CLI defaults to
the volatile: file system. This command expects a directory name input.
Any file saved in the volatile: file system is erased when the switch reboots.
The syntax for this command is
cd
directory name
.
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