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
Linux / 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 ... ]

-cClear 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.
-dDisplay error messages rather than ringing the terminal bell if an unrecognized command is used. This is helpful for inexperienced users.
-eExit immediately after writing the last line of the last file in the argument list.
-fDo 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.
-iPerform pattern matching in searches without regard to case.
-lIgnores form-feed characters (Ctrl + L starts the new page.)
-n numberSpecify 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 commandFor 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.
-rDisplays control keys.
-sDoesn't display extra blank lines.
-t tagstringWrite the screenful of the file containing the tag named by the tagstring argument.
-uIgnores backspace and underscores.
-wNormally, 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.
-linesDisplay the indicated number of lines in each screenful, rather than the default (the number of lines in the terminal screen less two).
+linenumberStart up at linenumber
+/patternDisplays text two lines before the first time text appears.
filenameThe 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 - Site Map - About Us
Link to Computer Hope - Bookmark Computer Hope