beautypg.com

Directory operations – H3C Technologies H3C S3600 Series Switches User Manual

Page 939

background image

1-2

The S3600 series Ethernet switches support Intelligent Resilient Framework (IRF), and allow you to

access a file on a switch in one of the following ways:

z

To access a file on the specified unit, you need to specify the file in universal resource locator (URL)

format and starting with unit[No.]>flash:/, where [No.] represents the unit ID of the switch. For

example, if the unit ID of the switch is 1, the URL of a file named text.txt in the root directory of the

switch is unit1>flash:/text.txt.

z

To access a file on the current unit, you need to enter the file URL starting with flash:/. For example,

the URL of file text.txt in the root directory of the Flash on the current unit is flash:/text.txt.

z

To access a file in the current directory, enter the path name or file name directly. For example, to

access file text.txt in the current directory, you can directly input the file name text.txt as the file

URL.

Directory Operations

The file system provides directory-related functions, such as:

z

Creating/deleting a directory

z

Displaying the current work directory, or contents in a specified directory

Follow these steps to perform directory-related operations:

To do…

Use the command…

Remarks

Create a directory

mkdir directory

Optional

Available in user view

Delete a directory

rmdir directory

Optional

Available in user view

Display the current work
directory

pwd

Optional

Available in user view

Display the information about
specific directories and files

dir [ /all ] [ /fabric | file-url ]

Optional

Available in user view

Enter a specified directory

cd directory

Optional

Available in user view

z

Only empty directories can be deleted by using the rmdir command.

z

In the output information of the dir /all command, deleted files (that is, those stored in the recycle

bin) are embraced in brackets.

This manual is related to the following products: