< Home

Overview of the File System

File System

The file system manages files and directories on storage media. In the file system, you can create, delete, modify, and rename files or directories, and view file contents.

Storage Medium

The switch supports the flash memory.

The S5730-HI has reserved slots in which pluggable SSD cards can be installed.

Naming Rules for Files

The value is a string of case-insensitive characters without spaces. The file name formats are as follows:

  • File name

    A file resides in the current working directory if the file name is in this format. The length of the file name ranges from 1 to 64.

  • Drive + Path + File name

    This file name format uniquely identifies files in specified paths. The length of the file name ranges from 1 to 64 and the total length of the path and file name ranges from 1 to 160.

    In this format, drive indicates the storage medium and can be set to flash:.

    drive of devices in a stack can be set to:
    • flash: root directory of the flash memory of the master switch on a device in a stack.
    • stack ID#flash: root directory of the flash memory in a slot on a device in a stack.

      For example, slot2#flash: indicates the flash memory in slot 2.

    In the file name, path indicates the directory and subdirectory. The directory name is case-insensitive. Spaces and the following characters cannot be used in the directory name: ~ * / \ : ' "

    Paths are either absolute or relative. The relative path is related to the root directory or the current working directory. A relative path starting with a slash (/) is related to the root directory.
    • flash:/my/test/ is an absolute path.

    • /selftest/ is related to the root directory and indicates the selftest directory in the root directory.

    • selftest/ is related to the current working directory and indicates the selftest directory in the current working directory.

    For example, in the dir flash:/my/test/mytest.txt command, flash:/my/test/ is an absolute path.

    Run the dir /my/test/mytest.txt command to find the mytest.txt file from a directory related to the root directory.

    Run the dir test/mytest.txt command to find the mytest.txt file from a directory related to the current working directory (flash:/my/ for example).

    • In the file operation command format, filename indicates the file name.

    • In the file operation command format, directory indicates the path (drive + path).

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >