Information Technology Reference
In-Depth Information
dir command
Example 3-4
r4#dir
Directory of flash:/
2 -rwx 6697836 Mar 27 1993 02:53:08 mc3810-a2isv5-mz.120-7.XK1.bin
8128000 bytes total (1428992 bytes free)
If the router has two PCMCIA flash cards, you can move from one card to another by changing
directories with the cd (change directory) command:
cd slot1 —changes the second PCMCIA flash card in slot1:.
cd slot0 —changes the first PCMCIA flash card in slot0:.
When you delete a file from flash, it is not necessarily removed from the flash card directory.
After the delete command, the files appear with a D to mark them as deleted. Example 3-5
shows a list of files that are deleted. The dir deleted command lists all deleted files in flash.
Example 3-5
dir deleted Command Lists Deleted Files
router#dir deleted
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D ffffffff 81a027ca 41bdc 22 7004 Apr 01 1998 15:27:45 5002.config.
4.1.98.cfg
2 .D ffffffff ccce97a3 43644 23 6630 Apr 01 1998 15:36:47 5002.default
.config.cfg
D
D
1213952 bytes available (6388224 bytes used)
At this point, the deleted files can be restored with the undelete command.
Use the squeeze command to remove the files from the flash. The squeeze command removes
all files that are marked with a D, as shown in Example 3-6.
squeeze Command
Example 3-6
router# squeeze slot0:
All deleted files will be removed, proceed (y/n) [n]? y
Squeeze operation may take a while, proceed (y/n) [n]? y
Erasing squeeze log
Search WWH ::




Custom Search