B-7
Cisco 3900 Series, Cisco 2900 Series, and Cisco 1900 Series Integrated Services Routers Generation 2 Software Configuration Guide
Appendix B Using CompactFlash Memory Cards
Directory Operations on a CompactFlash Memory Card
1580 -rw- 6462268 Mar 06 2004 06:14:02 c2900-universalk9-mz.3600ata
63930368 bytes total (51007488 bytes free)
Router#
rename flash0:c2900-universalk9-mz.tmp flash0:c2900-universalk9-mz
Destination filename [c2900-universalk9-mz]?
Router#
dir flash0:
Directory of flash0:/
1580 -rw- 6462268 Mar 06 2004 06:14:02 c2900-universalk9-mz.3600ata
3 -rw- 6458388 Mar 01 2004 00:01:24 c2900-universalk9-mz
63930368 bytes total (51007488 bytes free)
Directory Operations on a CompactFlash Memory Card
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 B-7
•
Creating a New Directory, page B-8
•
Removing a Directory, page B-9
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
flash0
. If you enter
cd
flash1:
, the router enters the
flash1
directory.
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
To display a list of files in the directory that you are in, enter the
dir
command in privileged EXEC mode.
The command-line interface will display the files in the file system that was specified as the default by
the
cd
command.
Router#
dir
Directory of flash0:/
1580 -rw- 6462268 Mar 06 2004 06:14:02 c2900-universalk9-mz.3600ata
3 -rw- 6458388 Mar 01 2004 00:01:24 c2900-universalk9-mz
63930368 bytes total (51007488 bytes free)
Entering a Directory: Example
To enter the /config directory:
Router#
cd config
To verify that you are in the /config directory: