|
A History of Unix
Unix in Summary
An introductory tutorial on Unix...
Selecting a Shell
Regular Expressions...
Perl and Unix...
Help with vi...
Shell scripting...
The 10 Unix commands every beginner needs to know...
The 10 most misunderstood commands...
The 62 Core Commands
Commands by Category
Alphabetic list of commands...
Copyright/Copyleft info...
|
more
- DESCRIPTION
- browse through a text file
- SYNOPSIS
- more [-ceis] [-t tag] [-(OR +)/ pattern] [file ...]
- OPTIONS
-
- -c
- Redraw the screen from the top rather than scrolling from the bottom.
- -i
- Perform case-insensitive searches.
- -s
- Squeeze multiple blank lines into one blank line.
- -t tag
- Display the file containing 'tag'. See ctags.
- -u
- Treat backspace characters as '^H'.
- COMMANDS
Some commands are preceded by a number, represented here as a '#'.
The carat ('^') means 'control', '^F' means 'control-F'
- h
- Display the full list of more commands. The one to remember if you can remember only one.
- #SPACE or #f or #^F
- If # is specified, scroll forward # lines. Otherwise scroll forward one window.
- #b or #^B
- If # is specified, scroll backward # lines. Otherwise scroll backward one window.
- #j or #RETURN
- If # is specified, scroll forward # lines. Otherwise scroll forward one line.
- #k
- If # is specified, scroll backward # lines. Otherwise scroll backward one line.
- #d or #^D
- If # is specified, scroll forward # lines. Otherwise scroll forward one half screen.
Use # as the new default for this command.
- #u or #^U
- If # is specified, scroll backward # lines. Otherwise scroll backward one half screen.
Use # as the new default for this command.
- #g
- If # is specified, go to line #. Otherwise go to the beginning of the file.
- #G
- If # is specified, go to line #. Otherwise go to the end of the file.
- r or ^L
- Refresh the screen
- R
- Refresh the screen, discarding any buffered input.
Use this if the file is being changed as it is being viewed.
- m letter
- Mark the current position with the name letter.
- ' (single quote) letter
- Return to the position marked by that letter.
- '' (2 single quotes)
- Return to the last move of more than a screenful, defaulting to the beginning of the file.
- #/pattern
- Search forward for the #th line that contains the pattern
- #/!pattern
- Search forward for the #th line that does not contain the pattern
- #?pattern
- Search backward for the #th line that contains the pattern
- #?!pattern
- Search backward for the #th line that does not contain the pattern
- #n
- Repeat the previous search, using new #.
- :t tag
- Go to the tag.
- v
- Call up the vi editor for the current file.
- = or ^G
- Displayt the current line number.
- q or :q or ZZ
- Exits more.
- ENVIRONMENT VARIABLES
more utilizes the following environment variables, if they exist:
- MORE
- A string specifying options as described in the OPTIONS section, above.
As in a command line, the options must be separated by blank characters and each option specification must start with a -.
Any command line options are processed after those specified in MORE as though the command line were: more $MORE options operands
- TERM
- Specifies terminal type, used by more to get the terminal characteristics necessary to manipulate the screen.
- SEE ALSO
- ctags
- environ
|