Cisco 3725 Software Configuration Guide - Page 177

Delete Files from Compact Flash Memory, Rename a File, Display File Content

Page 177 highlights

Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations OL-1957-04 Sectors Per Cluster 8 Number of Clusters 7796 Number of Data Sectors 62560 Base Root Sector 155 Base FAT Sector 93 Base Data Sector 187 Delete Files from Compact Flash Memory To delete a file from a compact Flash memory card, use the delete {flash: | slot0:} command. The following example shows output for deleting a Cisco IOS file from an internal compact Flash memory card: Router# delete flash:c3725-i-mz.tmp Delete filename [c3725-i-mz.tmp]? Delete flash:c3725-i-mz.tmp? [confirm] Router# dir flash: Directory of flash:/ No files in directory 128094208 bytes total (128094208 bytes free) Rename a File To rename a file in a compact Flash memory card, use the rename {flash: | slot0:} command. The following example shows output for renaming a Cisco IOS file in an internal compact Flash memory card: Router# dir flash: Directory of flash:/ 3 -rw1580 -rw- 6458388 Mar 01 1993 00:00:58 c3725-i-mz.tmp 6462268 Mar 06 1993 06:14:02 c3725-i-mz.3600ata 63930368 bytes total (51007488 bytes free) Router# rename flash:c3725-i-mz.tmp flash:c3725-i-mz Destination filename [c3725-i-mz]? Router# dir flash: Directory of flash:/ 1580 -rw3 -rw- 6462268 Mar 06 1993 06:14:02 c3725-i-mz.3600ata 6458388 Mar 01 1993 00:01:24 c3725-i-mz 63930368 bytes total (51007488 bytes free) Display File Content To display the content of a file in a compact Flash memory card, use the more {flash: | slot0:} command. The following example shows output from the more {flash: | slot0:} command on an internal Compact Flash card: Router# more flash:c3725-i-mz.tmp 00000000: 7F454C46 01020100 00000000 00000000 00000010: 00020061 00000001 80008000 00000034 .ELF a 4 Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers B-9

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

B-9
Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
OL-1957-04
Appendix B
Formatting the Compact Flash Memory Cards
File and Directory Operations
Sectors Per Cluster
8
Number of Clusters
7796
Number of Data Sectors 62560
Base Root Sector
155
Base FAT Sector
93
Base Data Sector
187
Delete Files from Compact Flash Memory
To delete a file from a compact Flash memory card, use the
delete
{
flash: | slot0:
}
command.
The following example shows output for deleting a Cisco IOS file from an internal compact Flash
memory card:
Router#
delete flash:c3725-i-mz.tmp
Delete filename [c3725-i-mz.tmp]?
Delete flash:c3725-i-mz.tmp? [confirm]
Router#
dir flash:
Directory of flash:/
No files in directory
128094208 bytes total (128094208 bytes free)
Rename a File
To rename a file in a compact Flash memory card, use the
rename
{
flash: | slot0:
}
command.
The following example shows output for renaming a Cisco IOS file in an internal compact Flash memory
card:
Router#
dir flash:
Directory of flash:/
3
-rw-
6458388
Mar 01 1993 00:00:58
c3725-i-mz.tmp
1580
-rw-
6462268
Mar 06 1993 06:14:02
c3725-i-mz.3600ata
63930368 bytes total (51007488 bytes free)
Router#
rename flash:c3725-i-mz.tmp flash:c3725-i-mz
Destination filename [c3725-i-mz]?
Router#
dir flash:
Directory of flash:/
1580
-rw-
6462268
Mar 06 1993 06:14:02
c3725-i-mz.3600ata
3
-rw-
6458388
Mar 01 1993 00:01:24
c3725-i-mz
63930368 bytes total (51007488 bytes free)
Display File Content
To display the content of a file in a compact Flash memory card, use the
more
{
flash: | slot0:
}
command.
The following example shows output from the
more
{
flash: | slot0:
} command on an internal
Compact Flash card:
Router#
more flash:c3725-i-mz.tmp
00000000: 7F454C46 01020100 00000000 00000000
.ELF
....
....
....
00000010: 00020061 00000001 80008000 00000034
...a
....
....
...4