CLI Reference Guide-R01

Table Of Contents
Chapter 4
| System Management Commands
File Management
– 123 –
dir This command displays a list of files in flash memory.
Syntax
dir [unit:] {boot-rom | config | opcode | usbdisk}: [filename]}
unit - Unit identifier. (Range: 1)
boot-rom
- Boot ROM (or diagnostic) image file.
config - Switch configuration file.
opcode - Run-time operation code image file.
usbdisk - Installed USB device file.
filename - Name of configuration file or code image. If this file exists but
contains errors, information on this file cannot be shown.
Default Setting
None
Command Mode
Privileged Exec
Command Usage
If you enter the command dir without any parameters, the system displays all files.
File information is shown below:
Example
The following example shows how to display all file information:
Console#dir
File Name Type Startup Modified Time Size (bytes)
------------------------------ ------- ------- ------------------- ------------
Unit 1:
runtime.bix OpCode Y 2021-05-13 06:08:59 26,657,664
Factory_Default_Config.cfg Config N 2021-04-25 05:46:24 455
startup1.cfg Config Y 2021-04-25 05:46:29 1,526
-------------------------------------------------------------------------------
Free space for compressed user config files: 452,464,640
Total space: 1,073,741,824
Console#
Table 19: File Directory Information
Column Heading Description
File Name The name of the file.
File Type File types: Operation Code, and Config file.
Startup Shows if this file is used when the system is started.
Modify Time The date and time the file was last modified.
Size The length of the file in bytes.