more

Name

more -- display files on a page-by-page basis

Description

more is as specified in POSIX 1003.1-2008 (ISO/IEC 9945-2009), but with differences as listed below.

Differences

The more command need not respect the LINES and COLUMNS environment variables.

The following additional options may be supported:

-num 

specifies an integer which is the screen size (in lines).

+num 

starts at line number num.

+/pattern 

Start at the first line matching the pattern, equivalent to executing the search forward (/) command with the given pattern immediately after opening each file.

The following options from POSIX 1003.1-2008 (ISO/IEC 9945-2009) may behave differently:

-e 

has unspecified behavior.

-i 

has unspecified behavior.

-n 

has unspecified behavior.

-p 

Either clear the whole screen before displaying any text (instead of the usual scrolling behavior), or provide the behavior specified by POSIX 1003.1-2008 (ISO/IEC 9945-2009). In the latter case, the syntax is "-p command".

-t 

has unspecified behavior.

The more command need not support the following interactive commands:

g
G
u
control u
control f
newline
j
k
r
R
m
' (return to mark)
/!
?
N
:e
:t
control g
ZZ

Rationale

The +num and +/string options are deprecated in SUSv2, and have been removed in POSIX 1003.1-2008 (ISO/IEC 9945-2009); however this specification continues to specify them because the publicly available util-linux package does not support the replacement (-p command). The +command option as found in SUSv2 is more general than is specified here, but the util-linux package appears to only support the more specific +num and +/string forms.