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;

-cPage through the file by clearing the window. (not scrolling).
-dDisplays “Press space to continue, ‘q’ to quit
-fCount logical lines rather than screen lines (wrapping text)
-lIgnores form feed (^L) characters.
-rDisplay all control characters.
-sDisplays multiple blank lines as one blank line.
-uDoes not display underline characters and backspace (^H).
-wWaits for a user to press a key before exiting.
-nDisplays n lines per window.
+numDisplays the file starting at line number num.
+/patternDisplays the file starting at two lines before the pattern.

Some e.g

For example if you want to find the word “HERE” you must use /HERE .

take a look!



Leave a Reply

Your email address will not be published.