flash

Use the flash command to perform basic flash file maintenance.

Syntax

flash { copy source-file destination-file | dbgflock | delete flash-file | files directory-name | rename source-file destination-file }

Command Default

N/A

Parameters

copy source-file destination-file
Copy the source flash file to a new file
dbgflock
Display the flash access lock holder
delete flash-file
Delete the flash file
files directory-name
Display flash files in a particular directory
rename source-file destination-file
Rename a flash file

Modes

Exec mode

Usage Guidelines

The command is useful in flash file maintenance.

Examples

In the following example, flash files are displayed.

device# flash files
Type       Size   Name
----------------------
F        24108665 primary
F        24108665 secondary
F             610 startup-config.backup
F            2052 startup-config.txt

48219992 bytes 4 File(s) in FI root

     1768706048 bytes free in FI root
     1768706048 bytes free in /

The show flash command also displays flash file information but with different results.

device# show flash
Stack unit 1:
  Compressed Pri Code size = 24108665, Version:08.0.40qT213 (SPR08040q074.bin)
  Compressed Sec Code size = 24108665, Version:08.0.40qT213 (SPR08040q074.bin)
  Compressed Boot-Monitor Image size = 786944, Version:10.1.05T215
  Code Flash Free Space = 1768706048

History

Release version Command history
8.0.10 This command was introduced.