Appendix C Using the CompactFlash Disk

Working with a CompactFlash Disk

Table C-2 CompactFlash Disk-Related Software Commands for the Cisco 7401ASR (continued)

Command and Arguments

Purpose

 

 

delete [disk0:]filename

Deletes a file.

 

Allows you to delete any file you designate, where filename

 

designates the name of the file.

 

 

dir [/all disk0: ]

Lists files on a file system.

 

Allows you to list the contents of the CompactFlash Disk in slot 0.

 

The /all argument lists all files on all file systems in your system.

 

 

format [flash: bootflash: disk0: ]

Formats a file system.

 

Allows you to format a linear Flash memory card (flash:), onboard

 

Flash memory (bootflash:), or a new CompactFlash Disk (disk0:).

 

This command also allows you to reformat a linear Flash memory

 

card or CompactFlash Disk that was formatted on another type of

 

system.

 

Note This command destroys all data currently in Flash memory;

 

therefore, we strongly recommend that you use the format

 

command with caution to prevent irretrievable loss of data.

 

 

mkdir [disk0:]directory-name

Creates a new directory.

 

Allows you to create directories on a CompactFlash Disk, where

 

directory-nameis the name you assign to this directory.

 

 

pwd

Displays current working directory.

 

Allows you to display the name of the CompactFlash Disk directory

 

in which you are currently working.

 

 

rename [disk0:]filename [disk0:]filename

Renames a file.

 

Allows you to rename a file that is located on one CompactFlash

 

Disk and assign to that file another (or the same) file system path

 

and filename. The first group of arguments defines the source

 

(current) file system path and filename, and the second set of

 

arguments defines the destination file system path and filename.

 

 

rmdir [disk0:]directory-name

Removes an existing directory.

 

Allows you to remove a directory that currently exists on a

 

CompactFlash Disk, where directory-nameis the name of the

 

directory you want to remove.

 

 

show [disk0:]

Lists information about CompactFlash Disk format and geometry.

 

 

Using Software Commands

This section provides examples of some of the basic software commands you can use with the CompactFlash Disk. See Table C-2for optional arguments you can use with some of the following commands:

Using the cd Command, page C-8

Using the show Command, page C-8

Using the pwd Command, page C-9

Using the dir Command, page C-9

Using the format Command, page C-9

Cisco 7401ASR Installation and Configuration Guide

 

OL-5419-01 B0

C-7

 

Page 131
Image 131
Cisco Systems 7401ASR manual Using Software Commands