< Home

more

Function

The more command displays a specified file.

Format

more file-name [ offset ] [ all ]

Parameters

Parameter Description Value
file-name Specifies the name of the file to be displayed. The value is a string of 1 to 160 characters without spaces.

When double quotation marks are used around the string, spaces are allowed in the string.

The device name is flash:.

offset Specifies the offset of the file to be displayed. The value is an integer ranging from 0 to 2147483647 in Bytes.
all Displays all files. -

Views

User view

Default Level

3: Management level

Usage Guidelines

The file system displays the file in the .txt format.

It is not recommended to use this command to display non-text files. Otherwise, the terminal is shut down, fortunately, which is harmless to the system.

By specifying parameters in the more command displays files flexibly:
  • By running the more file-name command displays the file named file-name. Contents of a text file are displayed screen after screen. If you hold and press the spacebar on the current terminal, all contents of the current file can be displayed.

    There are two preconditions if you want to display the contents of a text file screen after screen:
    • The value configured by screen-length command must be larger than 0.
    • The total lines of the file must be larger than the value configured by screen-length command.
  • By running the more file-name offset command displays the file named file-name. Contents of a text file are displayed from the line specified by offset screen after screen. If you hold and press the spacebar on the current terminal, all contents of the current file can be displayed.

    There are two preconditions if you want to display the contents of a text file screen after screen:
    • The value configured by screen-length command must be larger than 0.
    • The result of the number of file characters subtracted by the value of offset must be larger than the value configured by screen-length command.
  • By running the more file-name all command displays the file named file-name. Contents of a text file are completely displayed without pausing after each screenful of information.

Example

# Display the content of the file test.txt.

<sysname> more test.txt
AppWizard has created this test application for you.
This file contains a summary of what you will find in each of the files that make up your test application.
Test.dsp
This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally.
# Display the contents of the file named log.txt with the offset being 100.
<sysname> more log.txt 100
:                CHINA HUAWEI TECHNOLOGY LIMITTED CO.,LTD
#   FILE NAME:                  Product Adapter File(PAF)
#   PURPOSE:                    MAKE VRPV5 SUITABLE FOR DIFFERENT PRODUCT IN LIB
#   SOFTWARE PLATFORM:          V6R2C00
#   DETAIL VERSION:             B283
#   DEVELOPING GROUP:            8090 SYSTEM MAINTAIN GROUP
#   HARDWARE PLATFORM:          8090 (512M Memory)
#   CREATED DATE:               2003/05/10
#   AUTH:                        RAINBOW
#   Updation History:           Kelvin dengqiulin update for 8090(2004.08.18)
#                               lmg update for R3(2006.11.7)
#                               fsr update for R5 (2008.1.18)
#                               qj update for R6 (2008.08.08)
#   COPYRIGHT:                           2003---2018
#----------------------------------------------------------------------------------


#BEGIN FOR RESOURCE DEFINATION
[RESOURCE]
FORMAT: SPECS RESOURCE NAME STRING = CONTROLLABLE(1 : ABLE , 0: NOT ABLE),DEFAULT VALUE , MAX VALUE , MIN VALUE
#BEGIN  SPECS RESOURCE FOR TE tunnel Nto1 PS MODULE
PAF_LCS_TUNNEL_SPECS_TE_PS_MAX_PROTECT_NUM = 1, 8, 16, 1
PAF_LCS_TUNNEL_SPECS_TE_PS_REBOOT_TIME     = 1, 180000, 3600000, 60000
  ---- More ----                                                               
# Display all contents of the file named paf.txt.
<sysname> more paf.txt all
PAF_LCS_588_IFC_FIFO_DEPTH_ASE = 222
#IFC_FIFO_DEPTH_ASE EXPLAIN (222: NORMAL, 102: DEEP)
PAF_LCS_588_IPE_FIFO_DEPTH_TCM = 659206
#IPE_FIFO_DEPTH_TCM EXPLAIN (659206: NORMAL, 655360: DEEP)
PAF_LCS_588_IFC_FIFO_DEPTH_TCM = 222
#IFC_FIFO_DEPTH_TCM EXPLAIN (222: NORMAL, 102: DEEP)
#END OF SPECS RESOURCE FOR 588 MODULE
#BEGIN  8090 MEM GATE  AND  ISSU MEM GATE
PAF_LCS_8090_BOARD_RESET_MEMORY_GATE           = 90
PAF_LCS_8090_512BOARD_RESET_MEMORY_GATE        = 85
PAF_LCS_8090_BOARD_RESET_MEMORY_GATE_ISSU      = 95
PAF_LCS_ISSU_CHECK_MEMORY_GATE                 = 40
#END  8090 MEM GATE  AND  ISSU MEM GATE
[END CONFIGURE]  
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >