1-2
Format Description Length Example
path/file-name
Specifies a file in the specified
folder under the current
working directory. path
represents the folder name.
You can specify multiple
folders, indicating a file under a
multi-level folder.
1 to 135
characters
test/a.txt: Indicates that a file
named a.txt is in the test folder
under the current working
directory.
drive:/[path]/file-
name
Specifies a file in the specified
storage medium on the device.
drive represents the storage
medium name. The S5120-EI
series switches use flashes as
their storage media. The
storage medium on the master
is flash; the storage medium on
a slave is slot2#flash, where 2
represents the member ID of
the slave. You can use the
display stack command to
view the correspondence
between a device and its
member ID.
1 to 135
characters
flash:/test/a.txt: Indicates that a
file named a.txt is in the test
folder under the root directory
of the flash memory on the
master.
To read and write the a.txt file
under the root directory of the
flash on a slave (with the
member ID 2), input
slot2#flash:/a.txt for the
filename.
For the S5120-EI series, when you specify a configuration file (.cfg file), startup file (.bin file), or Boot
ROM file by inputting its name in the format of drive:/[path]/file-name), the total length of the name
cannot exceed 63 characters.
Directory Operations
Directory operations include creating/removing a directory, displaying the current working directory,
displaying the specified directory or file information, and so on.
Displaying directory information
To do… Use the command… Remarks
Display directory or file
information
dir [ /all ] [ file-url ]
Required
Available in user view
Displaying the current working directory
To do… Use the command… Remarks
Display the current working
directory
pwd
Required
Available in user view