Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
1-30
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 1 Basic System Commands
dir
dir
To display the contents of a directory, use the dir command.
dir [filesystem:] [//server/] [directory]
Syntax Description
Note There can be no spaces in the filesystem://server/directory string. Individual elements of this string are
separated by colons (:) and slashes (/).
Command Default Displays the contents of the current working directory.
Command Modes EXEC mode
Command History
Usage Guidelines The dir command displays a listing of the files in the specified directory. For each file, it lists the size
of the file in bytes, the last modified time of the file, and the filename of the file. This command then
displays the usage statistics for the file system.
Use the pwd command to verify the current working directory.
Use the cd command to change the current working directory.
Examples This example shows how to display the contents of the root directory in bootflash:
switch# dir bootflash:
This example shows how to display the contents of the current working directory:
switch# dir
filesystem: (Optional) Name of the file system. Valid values are bootflash, debug, log,
modflash, or volatile.
//server/ (Optional) Name of the server. Valid values are ///, //module-1/, //sup-1/,
//sup-active/, or //sup-local/. The double slash (//) is required.
directory (Optional) Name of a directory. The directory name is case sensitive.
Release Modification
4.0(0)N1(1a) This command was introduced.