|
Article on other languages:
|
In computing,
HistoryThe UsageUnixThe command-syntax is: more [options] [file_name] If no file name is provided, more looks for input from stdin. Once more has obtained input, it displays as much as can fit on the current screen and waits for user input to advance, with the exception that a form feed (^L) will also cause more to wait at that line, regardless of the amount of text on the screen. In the lower-left corner of the screen is displayed the text "--More--" and a percentage, representing the percent of the file that more has paged through. (This percentage includes the text displayed on the current screen.) When more reaches the end of a file (100%) it exits. The most common methods of navigating through a file are Enter, which advances the output by one line, and Space, which advances the output by one screen. There are also other commands that can be used while navigating through the document; consult more's man page for more details.[2] OptionsOptions are typically entered before the file name, but can also be entered in the environment variable $MORE. Options entered in the actual command line will override those entered in the $MORE environment variable. Available options may vary between Unix systems, but a typical set of options is as follows:
Microsoft WindowsThe command-syntax is:[3] command | more [/c] [/p] [/s] [/tn] [+n] more [[/c] [/p] [/s] [/tn] [+n]] < [Drive:] [Path] FileName more [/c] [/p] [/s] [/tn] [+n] [files] ExamplesTo display the file named letter.txt on the screen, the user can type either of the following two commands: more < letter.txt type letter.txt | more The command displays the first screen of information from letter.txt, and then the following prompt appears: -- More -- When the spacebar is pressed, the next screen of information will be displayed. It is also possible to clear the screen and remove all extra blank lines before displaying the file: more /c /s < letter.txt type letter.txt | more /c /s OS/2The command-syntax is: MORE < [drive:][path]filename command | more
ExampleReturn the content of the OS/2 system directory using the [C:\]dir C:\OS2 | more References
External links
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net