Cisco Systems 12410, 12010, 12810 manual Dir Command, Delete Command, Milo# dir slot0

Page 50

Chapter 4 System Startup and Basic System Configuration

Using RP Flash Memory Cards

dir Command

To list the directory contents of the flash memory in use, enter the dir [device-name] command.

Where device-namecan be slot0:, slot1:, or bootflash:.

The following example shows the contents of the flash memory card in slot 0.

Milo# dir slot0

Directory of slot0:/

1

-rw-

122015

Sep 30

1999

15:03:55 myfile1

2

-rw-

2054979

Sep 30

1999

15:17:33 gsr-diag-mz.RELEASE28

3

-rw-

6670560

Sep

30

1999

15:22:49

gsr-p-mz.p7

4

-rw-

5560

Oct

08

1999

16:54:53

fun1

20578304 bytes total (9661756 bytes free) Milo#

delete Command

To delete a file from flash memory, use the cd command to select the flash memory device and then enter the delete filename command.

Where filename is any file within the selected flash memory media.

The following example shows how to delete the file named fun1 from the current flash memory card directory in slot 0.

Milo# cd slot0:

 

 

 

Milo# delete

slot0:fun1

 

 

 

Milo# dir

 

 

 

 

Directory of

slot0:/

 

 

 

1

-rw-

122015

Sep 30

1999

15:03:55 myfile1

2

-rw-

2054979

Sep 30

1999

15:17:33 gsr-diag-mz.RELEASE28

3

-rw-

6670560

Sep 30

1999

15:22:49 gsr-p-mz.p7

20578304 bytes total (9661756 bytes free) Milo#

Files that are deleted from the current flash memory directory are removed from the directory list but are not erased (they still occupy space in memory). This allows you to recover a deleted file at a later time using the undelete command. To permanently remove deleted files use the squeeze command.

 

Cisco 12010, Cisco 12410, and Cisco 12810 Router Installation and Configuration Guide

4-50

OL-11496-01

Image 50
Contents System Startup and Basic System Configuration Preconfiguration Requirements Sources of Cisco IOS SoftwareBoot Process Overview Powering On the Router and Observing the Boot Process Processor LED Display1 Meaning SourceLED Display Meaning Source PRIMII Meaning Source Line Card Alphanumeric LED Displays-Partial View ShownRomi OL-11496-01 Manually Booting the System Locating a Valid Cisco IOS Software Image Booting from the Cisco IOS Software ImageDir bootflash Dir slot0Command Purpose Boot flashConfiguring the Router Cisco IOS User Interface Command Modes Cisco IOS User InterfaceUser Exec Mode Privileged Exec ModeGlobal Configuration Mode Interface Configuration ModeUsing Setup for Configuration Changes Subinterface Configuration ModeMay enter a question mark ? for help SDCC1/0 No ip routing Configuring Global Parameters Using the Setup Facility Configuring Host Name Configuring Network Interfaces Configuring ProtocolsConfiguring Line Card Interfaces Milo# show version Using Global Configuration Mode Enter the enable command and password if promptedMilo# copy running-config startup-config Verifying Running Configuration File SettingsMilo# configure terminal Router# show running-configSaving the Running Configuration Settings to Nvram Viewing the Running Configuration Settings Configuring the Software Configuration Register Bit Number Hexadecimal Value Meaning/Function Setting Software Configuration Settings Boot FieldCiscobootfieldvalue-processorname Changing Software Configuration Register Settings Reboot the system Miloconfig# config-register 0xvalueLow-Order Bits in the Software Configuration Register Action/Filename Bit High-Order Bits in the Software Configuration Register Bit Address net host9600 Recovering a Lost Password Rommon 1 config-registerEnter the initialize command to initialize the router Milo# show startup-config Using RP Flash Memory Cards Installing and Removing a Flash Memory CardOL-11496-01 Installing and Removing a Flash Memory Card Formatting a New Flash Memory Card Milo# format slot0Specifying a Cisco IOS Software Image to Boot the System Cd Command Flash Memory CommandsPwd Command Milo# dir slot0 Dir CommandDelete Command Squeeze Command Milo# squeeze slot0Copying Image Files to or From Flash Memory Booting from Flash MemoryMiloconfig# boot system flash slot0myfile1 Milo# copy tftpfilename bootflashslot0slot1 filename Milo# copy tftpmyfile1 slot0myfile1Copying a Cisco IOS Software Image into a Flash Memory Card Milo# copy tftpnew.image slot0new.image Copying Cisco IOS Software Images Between Flash Memory Cards Milo# copy slot1image.new slot0image.newMilo# configure terminal Milo# show bootvar Copy startup-config slot0 slot1 filenameMilo# copy startup-config slot0myfile2 Copy running-config slot0slot1filename Milo# copy running-config slot0myfile2Milo# copy startup-config running-config Copy slot0slot1filename startup-configMilo# copy slot0myfile startup-config Recovering from Locked Blocks in Flash Memory Cards Post-Installation Procedures OL-11496-01