B-25
Cisco 2600 Series Routers Hardware Installation Guide
OL-2171-02
Appendix B Maintaining the Router
Installing and Formatting Compact Flash Memory Cards in Cisco 2691 Routers
Create directory filename [config]?
Created dir flash:/config
Router# mkdir flash:/config/test-config
Create directory filename [/config/test-config]?
Created dir flash:/config/test-config
Router# dir flash:
Directory of flash:/
3 -rw- 14221136 May 07 1993 03:18:24 c2691-i-mz.122-7.6.T1
3475 -rw- 9169616 Mar 01 1993 00:08:24 c2691-i-mz.tmp
1 drw- 0 Mar 01 1993 00:11:04 config
127832064 bytes total (104431616 bytes free)
Router# cd flash:/config
Router# dir flash:
Directory of flash:/config/
2 drw- 0 Mar 01 1993 00:11:20 test-config
127832064 bytes total (104431616 bytes free)
Remove a Directory
To remove a directory from compact Flash memory, use the rmdir flash: command.
Before you can remove a directory, remove all files and subdirectories from the directory.
The following example shows output for displaying the contents of an internal compact Flash memory
card, then removing the subdirectory named
test-config
:
Router# dir flash:
Directory of flash:/config/
1581 drw- 0 Mar 01 1993 23:50:08 test-config
128094208 bytes total (121626624 bytes free)
Router# rmdir flash:/config/test-config
Remove directory filename [/config/test-config]?
Delete flash:/config/test-config? [confirm]
Removed dir flash:/config/test-config
Router# dir flash:
Directory of flash:/config/
No files in directory
128094208 bytes total (121630720 bytes free)
Router#
Enter a Directory and Determine Which Directory You Are in
To enter a directory in compact Flash memory, use the cd flash: command.
To determine which directory you are in, use the pwd command.
If you enter only cd, the router will enter the default home directory, which is
flash:/
.
The following example shows output for the following actions: