the following file and directory procedures are useful for compact flash memory cards formatted with a class b flash file system.
file operations
copy files
to copy the files to another location, use the copy flash: source-filename {flash: | tfp: | lex: | null: | nvram: | pram: | rcp: | system: | tftp: | xmodem: | ymodem: | running-config | startup-config} destination-filename command.
the following example shows output for copying a configuration file to the startup configuration in an internal compact flash memory card (flash:):

the following example shows output for copying a configuration file to the running configuration in an internal compact flash memory card (flash:):

display the contents of a compact flash memory card
to display the contents (directories and files) of a compact flash memory card formatted with a class b flash file system, use the dir flash: command or the show flash: command.
the following example shows output for displaying the contents of a compact flash memory card using the dir flash: command.

the following example shows output for displaying the contents of a compact flash memory card using the show flash: command.

delete files from compact flash memory
to delete a file from compact flash memory, use the delete flash: filename command, followed by the squeeze flash: command.
when a file is deleted in the class b flash file system, the memory space occupied by the deleted file is not released until you enter the squeeze command. although the memory space once occupied by the deleted file remains, the deleted file cannot be recovered. to release the memory space occupied by a deleted file, enter the squeeze flash: command.
the dir command does not show deleted files; the show command shows all files, including any deleted files if the squeeze command has not been entered.
the following example shows output for deleting a cisco ios file from a compact flash memory card, and then releasing the memory space originally occupied by the file:

display the contents of a file
to display the content of a file in compact flash memory, use the more flash: filename command.
the following example shows output from the more command on a compact flash memory card: