3Com Switch 4200G Configuration Guide
File System Configuration 327
According to the operation objects, the operations on the file system fall into the
following categories:
■ Directory operation
■ File operation
■ Storage device operation
■ Prompt mode configuration
File path and file name can be represented in one of the following ways:
In URL (universal resource locator) format and starting with unit[ No.]>flash:/ ([ No.]
represents the unit ID of a switch). This method is used to specify a file on a specified
unit. For example, if the unit ID of a switch is 1, unit1>flash:/text.txt specifies the file
named text.txt and residing in the root directory.
Starting with flash:/. This method can be used to specify a file in the Flash of the
current unit.
Inputting the path name or file name directly. This method can be used to specify the
path to go to or a file in the current work directory.
Directory Operations The file system provides directory-related functions, such as:
■ Creating/deleting a directory
■ Displaying the information about the files or the directories in the current work
directory or a specified directory
Table 282 describes the directory-related operations.
Perform the following configuration in user view.
In the output information of the dir /all command, deleted files (that is, those in the
recycle bin) are embraced in brackets.
File Operations The file system also provides file-related functions, such as:
■ Deleting a file
■ Restoring a deleted file
■ Deleting a file completely
Table 282 Directory operations
Operation Command Description
Create a directory mkdir directory Optional
Delete a directory rmdir directory Optional
Only empty directories can be
deleted.
Display the current
work directory
Pwd Optional
Display the information
about specific
directories and files
dir [ /all ] [ file-url ] Optional
Enter a specified
directory
cd directory Optional
The default directory is the root
directory of Flash.