home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: mkmsgs Chapter 2
UNIX Commands
Next: Reference: mv
 

more



more

 [

options

] [

files

]

Display the named files on a terminal, one screenful at a time. After each screen is displayed, press RETURN to display the next line or press the spacebar to display the next screenful. Press h for help with additional commands, q to quit, / to search, or :n to go to the next file. more can also be invoked using the name page .

Options

-c

Page through the file by clearing each window instead of scrolling. This is sometimes faster.

-d

Display the prompt Press space to continue, 'q' to quit .

-f

Count logical rather than screen lines. Useful when long lines wrap past the width of the screen.

-l

Ignore formfeed (^L) characters.

-r

Force display of control characters, in the form ^ x .

-s

Squeeze; display multiple blank lines as one.

-u

Suppress underline characters and backspace (^H).

-w

Wait for a user keystroke before exiting.

- n

Use n lines for each window (default is a full screen).

+ num

Begin displaying at line number num .

+/ pattern

Begin displaying two lines before pattern .

Examples

Page through file in "clear" mode, and display prompts:



more -cd

 

file

Format doc to the screen, removing underlines:



nroff doc | more -u

View the man page for the grep command; begin near the word "BUGS" and compress extra white space:



man grep | more +/BUGS -s


Previous: Reference: mkmsgs UNIX in a Nutshell: System V Edition Next: Reference: mv
Reference: mkmsgs Book Index Reference: mv

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru