more (display files to screen)

Displays one or more files to the screen. It displays one screen, and then waits. The more command has both options and commands. Commands are typed while more is running, displaying the file. Commands are similar to vi commands. Pressing a key when more has displayed a screen full of text and is waiting for input tells more what to display next.

Format:    more listoffilenames
Examples:  more file1 file2
OptWhat It DoesExamples
+nStart displaying file at line nmore +10
+/patternDisplay file starting 2 lines before pattern is foundmore +/a*
CommandWhat It Does
<space>Display next screen
n<Enter>Display the next n lines; default is one line
/patternSearch for pattern
=Print current line number
bSkip backward one screen of ...

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.