dir
To display the list of files and directories on the specified file system, use the dir command in boot loader
mode.
dir filesystem:/file-url
Syntax Description
Alias for a file system. Use flash: for the system board flash device; use usbflash0:
for USB memory sticks.
filesystem:
(Optional) Path (directory) and directory name that contain the contents you want
to display. Separate each directory name with a space.
/file-url
Command Default
No default behavior or values.
Command Modes
Boot Loader
Privileged EXEC
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
Directory names are case sensitive.
Examples
This example shows how to display the files in flash memory:
Device: dir flash:
Directory of flash:/
2 -rwx 561 Mar 01 2013 00:48:15 express_setup.debug
3 -rwx 2160256 Mar 01 2013 04:18:48 c2960x-dmon-mz-150-2r.EX
4 -rwx 1048 Mar 01 2013 00:01:39 multiple-fs
6 drwx 512 Mar 01 2013 23:11:42 c2960x-universalk9-mz.150-2.EX
645 drwx 512 Mar 01 2013 00:01:11 dc_profile_dir
647 -rwx 4316 Mar 01 2013 01:14:05 config.text
648 -rwx 5 Mar 01 2013 00:01:39 private-config.text
96453632 bytes available (25732096 bytes used)
Table 47: dir Field Descriptions
DescriptionField
Index number of the file.2
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
916
dir