No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Basic Configuration

S1720, S2700, S5700, and S6720 V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Logging In to the Device to Manage Files

Logging In to the Device to Manage Files

Pre-configuration Tasks

Before logging in to the device to manage files, complete the following tasks:

  • Ensure that routes are reachable between the terminal and the device.
  • Ensure that a user has logged in to the device using a terminal.

Configuration Procedure

After a user logs in to the device on a terminal, the user can perform operations on storage media, directories, and files.

Users can perform the following operations in any sequence.


  • Perform operations on directories.

    Table 8-2  Performing operations on directories
    Operation Command Description

    Display the current directory.

    pwd -

    Change the current directory.

    cd directory -

    Display files and subdirectories in a specified directory.

    dir [ /all ] [ filename | directory | /all-filesystems ] -

    Create a directory.

    mkdir directory -

    Delete a directory.

    rmdir directory
    • The directory to be deleted must be empty.

    • A deleted directory and its files cannot be restored from the recycle bin.

  • Perform operations on files.

    Table 8-3  Performing operations on files
    Operation Command Description

    Display the file content.

    more filename [ offset ] [ all ]


    Copy a file.

    copy source-filename destination-filename
    • Before copying a file, ensure that the storage space is sufficient for the file.
    • If the target file has the same name as an existing file, the system asks you whether to overwrite the existing file.

    Move a file.

    move source-filename destination-filename

    If the target file has the same name as an existing file, the system asks you whether to overwrite the existing file.

    Rename a file.

    rename old-name new-name -

    Compress a file.

    zip source-filename destination-filename -

    Decompress a file.

    unzip source-filename destination-filename -

    Delete a file.

    delete [ /unreserved ] [ /quiet ] { filename | devicename }

    This command cannot delete a directory.


    In this command, /unreserved indicates that the file cannot be restored.

    Restore a file.

    undelete { filename | devicename }

    Running the delete command without the /unreserved keyword moves a file to the recycle bin. Run this command to restore this file.

    Remove a file from the recycle bin.

    reset recycle-bin [ filename | devicename ]

    Remove a file from the recycle bin to permanently delete it.

    Enter the system view.

    system-view -

    Execute batch files.

    execute batch-filename

    To perform multiple operations at one time, run the execute batch-filename command in the system view. The batch files must be stored in the storage medium first.

  • Perform operations on storage media.

    When the file system on a storage medium fails, the terminal prompts the user to rectify the fault.

    When the file system fault cannot be rectified or the data on the storage medium is unnecessary, you can format the storage medium.

    When a storage medium is formatted, data on the storage medium is cleared and cannot be restored. Therefore, exercise caution when formatting a storage medium.

    Table 8-4  Performing operations on storage media
    Operation Command Description

    Repair a storage medium with a faulty file system.

    fixdisk drive

    If the system still reports the fault after this command is executed, the storage medium is damaged.

    Format a storage medium.

    format drive

    If the storage medium is still unavailable after it is formatted, a physical exception occurs.

  • Configure the notification mode of the file system.

    When a user performs operations that may cause data loss or damage on a device, the system generates notifications or alarms. Users can configure the notification mode of the file system.

    Table 8-5  Configuring the notification mode of the file system
    Operation Command Description
    Enter the system view. system-view -
    Configure the notification mode of the file system. file prompt { alert | quiet }

    The default notification mode is alert.


    If the notification mode is set to quiet, the system does not provide notifications when data is lost caused by user misoperations such as deleting files. Therefore, this notification mode must be used with caution.

Updated: 2019-10-21

Document ID: EDOC1000178166

Views: 255639

Downloads: 1944

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next