Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix more command

Quick links

About more
Syntax
Examples
Related commands
Unix main page

About more

Displays text one screen at a time.

Syntax

more [-c] [-d] [-e] [-f] [-i] [-l] [-n number] [-p command] [-r] [-s] [-t tagstring] [-u] [-w] [ -lines ] [ + linenumber ] [ +/ pattern ] [ file ... ]

-c Clear before displaying. Redraws the screen instead of scrolling for faster displays. This option is ignored if the terminal does not have the ability to clear to the end of a line.
-d Display error messages rather than ringing the terminal bell if an unrecognized command is used. This is helpful for inexperienced users.
-e Exit immediately after writing the last line of the last file in the argument list.
-f Do not fold long lines. This is useful when lines contain nonprinting characters or escape
sequences, such as those generated when nroff output is piped through ul.
-i Perform pattern matching in searches without regard to case.
-l Ignores form-feed characters (Ctrl + L starts the new page.)
-n number Specify the number of lines per screenful. The number argument is a positive decimal integer. The -n option overrides any values obtained from the environment.
-p command For each file examined, initially execute the more command in the command argument. If the command is a positioning command, such as a line number or a regular expression search, set the current position to represent the final results of the command, without writing any intermediate lines of the file.
-r Displays control keys.
-s Doesn't display extra blank lines.
-t tagstring Write the screenful of the file containing the tag named by the tagstring argument.
-u Ignores backspace and underscores.
-w Normally, more exits when it comes to the end of its input. With -w, however, more prompts and waits for any key to be struck before exiting.
-lines Display the indicated number of lines in each screenful, rather than the default (the number of lines in the terminal screen less two).
+linenumber Start up at linenumber
+/pattern Displays text two lines before the first time text appears.
filename The name of the file.

Examples

more +3 myfile.txt

In the above example the command would begin displaying the file myfile.txt at line three.

Related commands

cat
csh
ctags
less
man
nroff
script
sh
ul

 

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope