50 BigIron RX Series Configuration Guide53-1001986-01Flash memory and PCMCIA flash card file management commands3For example, to delete all files with names that start with “test” from flash memory, if flash memoryhas the current management focus, enter a command such as the following.BigIron RX# delete test*.*For example, to delete all files on the flash card in slot 2, if flash memory has the currentmanagement focus, you can enter one of the following commands.BigIron RX# delete /slot2/orBigIron RX# delete slot2Recovering (“undeleting”) a fileYou can recover or undelete a file you have deleted from a flash card file system.NOTEYou cannot recover or undelete a file from the flash memory file system. Therefore, the undeletecommand does not apply to the flash memory file system.The software attempts to recover the file in the file system that has the current management focus.By default, flash memory has the management focus. If you want to recover a file in a file systemthat does not have the current management focus, you must switch the management focus to thedesired file system using the cd command. For more information about switching the managementfocus, refer to “Switching the management focus” on page 41.For example, to undelete a file on the flash card in slot 2, if flash memory has the currentmanagement focus, enter a command such as the following.BigIron RX# cd slot2BigIron RX# undeleteUndelete file ?RIMARY ? (enter y or n) :yInput one character: PFile recovered successfully and named to PRIMARYFor each file that can be undeleted from the flash card in slot 2, the CLI displays the remainingname entry in the file directory and prompts you for the first character of the file name. You canenter any valid file name character. You do not need to enter the character that was used before inthe deleted file name.Once you enter a character and the CLI undeletes the file, the CLI continues with the next file thatcan be undeleted. For each file, specify “y” or “n”, and specify a first character for the files that youselect to undelete.NOTEWhen you delete a file from a flash card, the CLI leaves the file intact but removes the first letter inthe file name from the file directory. However, if you save file changes or new files that use part ofthe space occupied by the deleted file, you cannot undelete the file. The undelete command listsonly the files that can be undeleted.To end the undelete process, enter the CTRL + C key combination.Syntax: undelete