Cisco VG224 Software Guide - Page 53

Remove a Directory, Enter a Directory and Determine Which Directory You Are In, rmdir, flash, slot0

Page 53 highlights

Appendix B Formatting the Compact Flash Memory Cards File and Directory Operations OL-5005-01 Create directory filename [/config/test-config]? Created dir flash:/config/test-config Router# dir flash: Directory of flash:/ 3 -rw- 6458208 Mar 01 1993 00:04:08 cvg224-i-mz.tmp 1580 drw- 0 Mar 01 1993 23:48:36 config 128094208 bytes total (121626624 bytes free) Router# cd flash:/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) 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 sample 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, you go to the default home directory, which is flash:/. The following example shows sample output, respectively, 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 Cisco VG224 Voice Gateway Software Configuration Guide 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

B-11
Cisco VG224 Voice Gateway Software Configuration Guide
OL-5005-01
Appendix B
Formatting the Compact Flash Memory Cards
File and Directory Operations
Create directory filename [/config/test-config]?
Created dir flash:/config/test-config
Router#
dir flash:
Directory of flash:/
3
-rw-
6458208
Mar 01 1993 00:04:08
cvg224-i-mz.tmp
1580
drw-
0
Mar 01 1993 23:48:36
config
128094208 bytes total (121626624 bytes free)
Router#
cd flash:/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)
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 sample 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
, you go to the default home directory, which is
flash:/
.
The following example shows sample output, respectively, 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