more (display files to screen)

team bbl


Displays one or more files to the screen. It displays one screen, and then waits. The more command has both options and commands. Commands are typed while more is running, displaying the file. Commands are similar to vi commands. Pressing a key when more has displayed a screen full of text and is waiting for input tells more what to display next.

 Format:    more listoffilenames Examples:  more file1 file2 

Opt

What It Does

Examples

+n

Start displaying file at line n

more +10

+/pattern

Display file starting 2 lines before pattern is found

more +/a*


Command

What It Does

<space>

Display next screen

n<Enter>

Display the next n lines; default is one line

/pattern

Search for pattern

=

Print current line number

b

Skip backward one screen of text

f

Skip forward two screens of text

n

Repeat last search

q

Stop displaying files

v

Open file in vi editor


    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net