Cisco 3725 Software Configuration Guide - Page 179

Remove a Directory, Enter a Directory and Determine Which Directory You Are

Page 179 highlights

Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations OL-1957-04 Remove a Directory To remove a directory from compact Flash memory, use the rmdir {flash: | slot0:} command. Before you can remove a directory, all files and subdirectories must be removed from the directory. The following example shows output for displaying the contents of an internal compact Flash card, then removing the subdirectory named test-config: Router# dir flash: Directory of flash:/config/ 1581 drw- 0 Mar 01 1993 23:50:08 test-config 128094208 bytes total (121626624 bytes free) Router# rmdir flash:/config/test-config Remove directory filename [/config/test-config]? Delete flash:/config/test-config? [confirm] Removed dir flash:/config/test-config Router# dir flash: Directory of flash:/config/ No files in directory 128094208 bytes total (121630720 bytes free) Enter a Directory and Determine Which Directory You Are In To enter a directory in compact Flash memory, use the cd command. To determine which directory you are in, use the pwd command. If you enter only cd, the router will enter the default home directory, which is flash:/. The following example shows output for the following actions: • Entering the home directory of a compact Flash memory card in an internal slot (flash:/) • Verifying that you are in the home directory • Displaying the contents of the home directory • Entering the /config directory • Verifying that you are in the /config directory • Entering the home directory of a compact Flash memory card in an external slot (slot0:/) • Verifying that you are in the slot0:/ directory • Returning to the home directory (flash:/) • Verifying that you are in the home directory Router# cd Router# pwd flash: Router# dir Directory of flash:/ 3 -rw1580 drw- 6458208 Mar 01 1993 00:04:08 c3725-i-mz.tmp 0 Mar 01 1993 23:48:36 config 128094208 bytes total (121630720 bytes free) Software Configuration Guide For Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers B-11

  • 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-11
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
Remove a Directory
To remove a directory from compact Flash memory, use the
rmdir
{
flash:
|
slot0:
} command.
Before you can remove a directory, all files and subdirectories must be removed from the directory.
The following example shows output for displaying the contents of an internal compact Flash card, then
removing the subdirectory named
test-config
:
Router#
dir flash:
Directory of flash:/config/
1581
drw-
0
Mar 01 1993 23:50:08
test-config
128094208 bytes total (121626624 bytes free)
Router#
rmdir flash:/config/test-config
Remove directory filename [/config/test-config]?
Delete flash:/config/test-config? [confirm]
Removed dir flash:/config/test-config
Router#
dir flash:
Directory of flash:/config/
No files in directory
128094208 bytes total (121630720 bytes free)
Enter a Directory and Determine Which Directory You Are In
To enter a directory in compact Flash memory, use the
cd
command.
To determine which directory you are in, use the
pwd
command.
If you enter only
cd
, the router will enter the default home directory, which is
flash:/
.
The following example shows output for the following actions:
Entering the home directory of a compact Flash memory card in an internal slot (
flash:/
)
Verifying that you are in the home directory
Displaying the contents of the home directory
Entering the
/config
directory
Verifying that you are in the
/config
directory
Entering the home directory of a compact Flash memory card in an external slot (
slot0:/
)
Verifying that you are in the
slot0:/
directory
Returning to the home directory (
flash:/
)
Verifying that you are in the home directory
Router#
cd
Router#
pwd
flash:
Router#
dir
Directory of flash:/
3
-rw-
6458208
Mar 01 1993 00:04:08
c3725-i-mz.tmp
1580
drw-
0
Mar 01 1993 23:48:36
config
128094208 bytes total (121630720 bytes free)