Scrigroup - Documente si articole

     

HomeDocumenteUploadResurseAlte limbi doc
AccessAdobe photoshopAlgoritmiAutocadBaze de dateCC sharp
CalculatoareCorel drawDot netExcelFox proFrontpageHardware
HtmlInternetJavaLinuxMatlabMs dosPascal
PhpPower pointRetele calculatoareSqlTutorialsWebdesignWindows
WordXml

AspAutocadCDot netExcelFox proHtmlJava
LinuxMathcadPhotoshopPhpSqlVisual studioWindowsXml

more linux command

linux



+ Font mai mare | - Font mai mic



more

more [options] [files]



Display the named files on a terminal, one screenful at a time. See less for an alternative to more. Some commands can be preceded by a number.

Options

num

Begin displaying at line number num.

-num number

Set screen size to number lines.

pattern

Begin displaying two lines before pattern.

-c

Repaint screen from top instead of scrolling.

-d

Display the prompt 'Hit space to continue, Del to abort' in response to illegal commands; disable bell.

-f

Count logical rather than screen lines. Useful when long lines wrap past the width of the screen.

-l

Ignore form-feed (Ctrl-L) characters.

-p

Page through the file by clearing each window instead of scrolling. This is sometimes faster.

-r

Force display of control characters, in the form ^x.

-s

Squeeze; display multiple blank lines as one.

-u

Suppress underline characters.

Commands

All commands in more are based on vi commands. An argument can precede many commands.

SPACE

Display next screen of text.

z

Display next lines of text, and redefine a screenful to lines lines. Default is one screenful.

RETURN

Display next lines of text, and redefine a screenful to lines lines. Default is one line.

d, ^D

Scroll lines of text, and redefine scroll size to lines lines. Default is one line.

q, Q, INTERRUPT

Quit.

s

Skip forward one line of text.

f

Skip forward one screen of text.

b, ^B

Skip backward one screen of text.

Return to point where previous search began.

Print number of current line.

pattern

Search for pattern, skipping to numth occurrence if an argument is specified.

n

Repeat last search, skipping to numth occurrence if an argument is specified.

cmd cmd

Invoke shell and execute cmd in it.

v

Invoke vi editor on the file, at the current line.

^L

Redraw screen.

:n

Skip to next file.

:p

Skip to previous file.

:f

Print current filename and line number.

Reexecute previous command.

Examples

Page through file in 'clear' mode, and display prompts:

more -cd file

Format doc to the screen, removing underlines:

nroff doc | more -u

View the manpage for the grep command; begin near the word 'BUGS' and compress extra whitespace:

man grep | more +/BUGS -s


Politica de confidentialitate | Termeni si conditii de utilizare



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 667
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved