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

Reminder

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

upgrade

CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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 have logged in to the device using a terminal.

Configuration Process

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 and select one or more action items according to requirements.

Procedure

  • Perform operations on directories.

    Table 11-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 ] -

    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 11-3  Performing operations on files
    Operation Command Description

    Display the file content.

    more [ /binary ] 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 prompts 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 prompts 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 ] [ /force ] { filename | devicename }

    This command cannot delete a directory.

    NOTICE:

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

    Restore a file.

    undelete { filename | devicename }

    If you run the delete command without the /unreserved keyword, the file is moved to the recycle bin. You can run this command to restore the files in the recycle bin.

    Remove a file from the recycle bin.

    reset recycle-bin [ filename | devicename ]

    To delete a file permanently, remove the file from the recycle bin.

    Enter the system view.

    system-view

    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.

    Execute batch files.

    execute batch-filename

  • Perform operations on storage media.

    • 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 you format a storage medium.

    • When a storage medium is not required, remove it safely to prevent files on the device from being damaged.

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

    Format a storage medium.

    format drive

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

    Remove a storage medium.

    remove drive

    Run this command to remove a storage medium safely to ensure that files stored in the device are not damaged.

  • 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 11-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.

    NOTICE:

    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.

Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100034066

Views: 88665

Downloads: 486

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