beautypg.com

Removing a subdirectory – Brocade BigIron RX Series Configuration Guide User Manual

Page 117

background image

BigIron RX Series Configuration Guide

39

53-1002484-04

Flash memory and PCMCIA flash card file management commands

2

A subdirectory name can be a maximum of 256 characters long. A complete subdirectory path
name cannot contain more than 260 characters.

The name is not case sensitive. You can enter upper- or lowercase letters. The CLI displays the
name using uppercase letters.

To verify successful creation of the subdirectory, enter a command such as the following to change
to the new subdirectory level.

BigIron RX# chdir /slot2/TEST

Current directory of slot2 is: /TEST

For information about changing the directory using the cd and chdir commands, refer to

“Switching

the management focus”

on page 33.

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 attempts to remove a subdirectory from the file system that has the current
management focus. By default, flash memory has the management focus. 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.

BigIron RX# rmdir slot2 TEST

Syntax: 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.

BigIron RX# rmdir TEST

rmdir /slot1/test/dir1/temp failed - File not found

For information about using the pwd command, refer to

“Determining the current management

focus”

on page 33.