Removing A Subdirectory; Renaming A File - Foundry Networks Switch and Router Installation And Configuration Manual

Switch and router
Table of Contents

Advertisement

You can use spaces in a file or subdirectory name if you enclose the name in double quotes. For example, to
specify a subdirectory name that contains spaces, enter a string such as the following: "a long subdirectory
name".
A subdirectory or file 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.

Removing a Subdirectory

To remove a subdirectory, enter a command such as the following:
BigIron# rmdir \TEST
Syntax: rd | rmdir [slot1 | slot2] <dir-name>
You can enter either rd or rmdir for the command name.
The slot1 | slot2 parameter specifies a PCMCIA slot.
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.
NOTE: You can remove a subdirectory only if the subdirectory does not contain files or other subdirectories.
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# rmdir \TEST
File not found

Renaming a File

Use the following method to rename a file on a flash card.
USING THE CLI
To rename a file, enter a command such as the following:
BigIron# rename oldname newname
Syntax: rename [slot1 | slot2] <old-name> <new-name>
If the command is successful, the CLI displays a new command prompt.
Changing the Read-Write Attribute of a File
The read-write attribute specifies whether a file on a flash card can be changed or deleted.
Read-only – You can display or copy the file but you cannot replace (copy over) or delete the file.
Read-write – You can replace (copy over) or delete the file. This is the default.
Use the following method to change the read-write attribute of a file.
USING THE CLI
To protect a file from accidental changes by changing the read-write attribute from read-write to read-only, enter a
command such as the following:
BigIron# attrib ro goodcfg.cfg
Syntax: attrib [slot1 | slot2] ro | rw <file-name>
To determine the read-write attribute of a file, use the dir command to list the directory information for the file.
Files set to read-only are listed with "R" in front of the file name. See "Displaying a Directory of the Files on a
Flash Card" on page 5-21.
December 2000
Using Redundant Management Modules
5 - 25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents