Removing a subdirectory, Renaming a file – Brocade Multi-Service IronWare Switching Configuration Guide (Supporting R05.6.00) User Manual
Page 102
![background image](/manuals/361635/102/background.png)
72
Multi-Service IronWare Switching Configuration Guide
53-1003036-02
Verifying available flash space on the management module before an image is copied
3
Brocade# chdir /slot2/TEST
Current directory of slot2 is: /TEST
For information about changing the directory using the cd and chdir commands, refer to
Removing a subdirectory
You can remove a subdirectory from the flash card file system using the rd and rmdir commands,
which have the same syntax and function exactly the same.
NOTE
You cannot remove subdirectories from the flash memory file system. Therefore, the rd and rmdir
commands do not apply to the flash memory file system.
NOTE
You can remove a subdirectory only if the subdirectory does not contain files or other subdirectories.
The software will remove a subdirectory from the file system that has the current management
focus (flash memory by default). However, you do not need to change the focus to remove a
subdirectory from a file system that does not currently have management focus. In this case, you
can specify the slot1 or slot2 keyword with the rd or rmdir command to remove the subdirectory
from the desired file system.
For example, to remove a subdirectory from the flash card inserted in slot 2, if the flash memory
has current management focus, enter a command such as the following.
Brocade# rmdir slot2 TEST
Syntax: [no] rd | rmdir [slot1 | slot2] dir-name
You can enter either rd or rmdir for the command name.
Specify the slot1 or slot2 keyword to remove a subdirectory on the flash card in slot 1 or slot 2,
respectively. If you do not specify one of these parameters, the command applies to the file system
that currently has the management focus.
The dir-name parameter specifies the subdirectory you want to delete. You can enter a path name if
the subdirectory is not in the current directory.
If you receive a message such as the following, enter the pwd command to verify that the
management focus is at the appropriate level of the directory tree.
Brocade# rmdir TEST
rmdir /slot1/test/dir1/temp failed - File not found
For information about using the pwd command, refer to
“Determining the current management
.
Renaming a file
You can rename a file in the flash memory on the management module or on a flash card inserted
in management module slot 1 or slot 2 using the rename or mv command.