Chapter 4
| System Management Commands
File Management
– 133 –
dir This command displays a list of files in flash memory.
Syntax
dir {boot-rom: | config: | opcode: | usbdisk:} [filename]}
boot-rom
- Boot ROM (or diagnostic) image file.
config - Switch configuration file.
opcode - Run-time operation code image file.
usbdisk - System file on a USB memory stick or disk.
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:
AOS5700-54X_V1.1.0.152_EC.swi OpCode N 2014-04-01 09:22:34 32688391
Factory_Default_Config.cfg Config N 2015-01-20 12:04:50 455
startup1.cfg Config Y 2015-03-23 04:14:32 2143
-------------------------------------------------------------------------------
Free space for compressed user config files: 2878332928
Console#
Table 19: File Directory Information
Column Heading Description
File Name The name of the file.
File Type File types: Boot-Rom, Operation Code, and Config file.
Startup Shows if this file is used when the system is started.
Modified Time The date and time the file was created.
Size The length of the file in bytes.