Context
You can manage directories by changing or displaying directories, displaying files in directories
or sub-directories, and creating or deleting directories.
Procedure
l Run:
cd { directory | device-name }
A directory is specified.
l Run:
pwd
The current directory is displayed.
l Run:
dir [ /all ] [ filename ] [ device-name ]
A list of files and sub-directories in the directory is displayed.
l Run:
mkdir { directory | device-name }
The directory is created.
l Run:
rmdir { directory | device-name }
The directory is deleted.
----End
6.2.4 Managing Files
You can log in to the file system to view, delete, or rename files on the router.
Context
l Managing files includes: displaying contents, copying, moving, renaming, compressing,
deleting, undeleting, deleting files in the recycle bin, running files in batch and configuring
prompt modes.
l You can run the cd { directory | device-name } command to enter the required directory
from the current directory.
Procedure
l Run:
more [ /binary ] { filename | device-name } [ offset ] [ all ]
The content of a file is displayed.
Specify parameters in the more command for file viewing options:
– Running the more file-name command to view the file named file-name. Contents of a
text file are displayed screen by screen. Hold and press the spacebar on the current
terminal to display all contents of the current file.
Two preconditions must be set to display the contents of a text file screen by screen:
Huawei AR1200 Series Enterprise Routers
Configuration Guide - Basic Configuration 6 Managing the File System
Issue 04 (2012-05-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
107