March 2002
File and Directory Procedures
Directory Operations for Class C Flash File System
Create a new directory
To create a directory in CompactFlash memory, use the mkdir {flash: slot0:} command.
The following example shows output for first displaying the contents of an internal CompactFlash card, and then creating a directory named config and a subdirectory named
Router# dir flash:
Directory of flash:/
3 | 6458208 | Mar 01 1993 00:04:08 |
128094208 bytes total (121634816 bytes free) Router# mkdir flash:/config
Create directory filename [config]?
Created dir flash:/config
Router# mkdir flash:/config/test-config
Create directory filename
Created dir
Router# dir flash:
Directory of flash:/
3 | 6458208 |
| Mar 01 1993 00:04:08 | |||
1580 | drw- | 0 | Mar 01 | 1993 23:48:36 | config | |
128094208 | bytes total | (121626624 | bytes free) |
| ||
Router# cd flash:/config |
|
|
| |||
Router# dir flash: |
|
|
|
| ||
Directory of flash:/config/ |
|
| ||||
1581 | drw- | 0 | Mar 01 | 1993 23:50:08 | ||
128094208 | bytes total | (121626624 | bytes free) |
|
Remove a directory
To remove a directory from CompactFlash memory, use the rmdir {flash: slot0:} command.
Before you can remove a directory, all files and subdirectories must be removed from the directory.
The following example shows output for displaying the contents of an internal CompactFlash card, then removing the subdirectory named
Router# dir flash:
Directory of flash:/config/
1581 drw- | 0 | Mar 01 1993 23:50:08 |
128094208 bytes total (121626624 bytes free) Router# rmdir
Remove directory filename
Delete
Removed dir
Router# dir flash:
Directory of flash:/config/
Installing and Formatting Cisco 2691, Cisco 3631 and Cisco 3700 CompactFlash Memory Cards
| 29 |
| |
|
|