The more command
Was developed by Daniel Halbert a graduate student at UC Berkeley .
The more command was first included in BSD 3.0 then extending to other operating systems.
The “less” command is a similar command but with the ability to navigate back and forward in a file. The Less program was written by Mark Nudelman during 1983-1985 and these two programs today are included in all Linux / Unix systems.
After you run this command and by passing the file, the screen will display the contents of this file .The most common methods of navigating through a file are “Enter ” line by line , and the space bar to advance one page .
The text ” –More– ” and a percentage appears in the lower left corner of the screen , which represents the percentage of the file that has browsed . (This percentage includes the text that appears on the current screen ) The more you approach the end of a file (100%) is shown on screen.Below you have different options or flags that you can use for this command;
|-c||Page through the file by clearing the window. (not scrolling).|
|-d||Displays “Press space to continue, ‘q’ to quit“|
|-f||Count logical lines rather than screen lines (wrapping text)|
|-l||Ignores form feed (^L) characters.|
|-r||Display all control characters.|
|-s||Displays multiple blank lines as one blank line.|
|-u||Does not display underline characters and backspace (^H).|
|-w||Waits for a user to press a key before exiting.|
|-n||Displays n lines per window.|
|+num||Displays the file starting at line number num.|
|+/pattern||Displays the file starting at two lines before the pattern.|
For example if you want to find the word “HERE” you must use /HERE .
take a look!