8
Using CompactFlash Memory Cards
OL-5596-01
Directory Operations on a CompactFlash Memory Card
Renaming Files
To rename a file on a CF memory card, enter the rename command in privileged EXEC mode:
Router# dir flash:
Directory of flash:/
3 -rw- 6458388 Mar 01 2004 00:00:58 c28xx-i-mz.tmp
1580 -rw- 6462268 Mar 06 2004 06:14:02 c28xx-i-mz.3600ata
63930368 bytes total (51007488 bytes free)
Router# rename flash:c28xx-i-mz.tmp flash:c28xx-i-mz
Destination filename [c28xx-i-mz]?
Router# dir flash:
Directory of flash:/
1580 -rw- 6462268 Mar 06 2004 06:14:02 c28xx-i-mz.3600ata
3 -rw- 6458388 Mar 01 2004 00:01:24 c28xx-i-mz
63930368 bytes total (51007488 bytes free)
Directory Operations on a CompactFlash Memory Card
Directory operations vary according to the formatted file system—Class B or Class C.
The following sections describe directory operations for external CF memory cards on Cisco routers:
•
Entering a Directory and Determining Which Directory You Are In, page 8
•
Creating a New Directory, page 9
•
Removing a Directory, page 10
Entering a Directory and Determining Which Directory You Are In
To enter a directory of a CF memory card, enter the cd command in privileged EXEC mode. The cd
command specifies or changes the default directory or file system. If you enter cd only, without
specifying a file system, the router enters the default home directory, which is flash.
Router# cd
To determine which directory you are in, enter the pwd command in privileged EXEC mode. The CLI
displays which directory or file system is specified as the default by the cd command.
Router# pwd
flash: