Man Command Information page

Source: Internet
Author: User
Tags chop control characters

Linux environment using man to query some keywords, a keyword may be a lot of introduction, we understand the information page can be used in the command:

SUMMARY of less COMMANDS

Commands marked with * May is preceded by a number, N.
Notes in parentheses indicate the behavior if N is given.
A key preceded by a caret indicates the Ctrl key; Thus ^k is ctrl-k.

H-H Display this help.
Q:q q:q ZZ Exit.
---------------------------------------------------------------------------

Moving

E ^e J ^n CR * Forward one line (or N lines).
y ^y k ^k ^p * Backward one line (or N lines).
F ^f ^v SPACE * Forward one window (or N lines).
B ^b esc-v * Backward One window (or N lines).
Z * Forward one window (and set window to N).
W * Backward one window (and set window to N).
Esc-space * Forward one window, but don ' t stop at End-of-file.
D ^d * Forward one Half-window (and set Half-window to N).
U ^u * Backward one Half-window (and set Half-window to N).
esc-) RightArrow * Left one half screen width (or N positions).

esc-(Leftarrow * Right one half screen width (or N positions).
F Forward Forever; Like "Tail-f".
R ^r ^l Repaint screen.
R Repaint screen, discarding buffered input.
---------------------------------------------------
Default "Window" is the screen height.
The Default "Half-window" is half of the screen height.
---------------------------------------------------------------------------

Searching

/pattern * Search forward for (n-th) matching line.
? pattern * Search backward for (n-th) matching line.
n * Repeat Previous search (for n-th occurrence).
N * Repeat Previous search in reverse direction.
Esc-n * Repeat Previous search, spanning files.
Esc-n * Repeat Previous search, reverse dir. & spanning files.
Esc-u Undo (toggle) search highlighting.
&pattern * Display only matching lines
---------------------------------------------------
A search pattern May is preceded by one or more of:

^n or! Search for non-matching lines.
^e or * Search multiple files (pass thru END of FILE).
^f or @ Start search at first file (for/) or last file (for?).
^k Highlight matches, but don ' t move (KEEP position).
^r Don ' t use REGULAR EXPRESSIONS.
---------------------------------------------------------------------------

Jumping

G < esc-< * Go to First line on file (or line N).
G > Esc-> * Go to last line on file (or line N).
P% * Go to beginning of the file (or N percent into file).
T * Go to the (n-th) next tag.
T * Go to the (n-th) previous tag.
{([* Find close bracket})].
})] * Find open bracket {([.
Esc-^f <c1> <c2> * Find close bracket <c2>.
Esc-^b <c1> <c2> * Find open bracket <c1>
---------------------------------------------------
Each "Find close bracket" command goes forward to the close bracket
Matching the (n-th) open bracket in the top line.

Each "Find open bracket" command goes backward to the open bracket
Matching the (n-th) close bracket in the bottom line.

M<letter> Mark the current position with <letter>.
' <letter> Go to a previously marked position.
"Go to the previous position.
^x^x same as '.
---------------------------------------------------
A mark is any upper-case or lower-case letter.
Certain Marks is predefined:
^ means beginning of the file
$ means end of the file
---------------------------------------------------------------------------

changing FILES

: e [file] examine a new file.
^x^v same as:e.
: N * Examine the (n-th) next file from the command line.
:p * Examine the (n-th) previous file from the command line.
: X * Examine the first (or n-th) file from the command line.

:d Delete The current file from the command line list.
= ^g:f Print Current file name.
---------------------------------------------------------------------------

Miscellaneous COMMANDS

-<flag> Toggle a command line option [see OPTIONS below].
--<name> Toggle a command line option, by name.
_<flag> Display the setting of a command line option.
__<name> Display The setting of an option, by name.
+cmd Execute The less cmd, each time a new file is examined.

!command Execute the shell command with $SHELL.
| Xcommand Pipe file between current POS & Mark X to Shell command.
V Edit the current file with $VISUAL or $EDITOR.
V Print version number of "less".
---------------------------------------------------------------------------

OPTIONS

Most options are changed either on the command line,

or from within less by using the-or--command.
Options May is given in one of the Forms:either a single
Character preceded by a-, or a name preceded by--.

-? ........--help
Display help (from command line).
-A ...--search-skip-screen
Search Skips current Screen.
-A ...--search-skip-screen
SEARCH starts just after target line.
-b [N] .....--buffers=[n]
Number O F buffers.
-B ...--auto-buffers
Don ' t automatically allocate buffers for pipes.
-C ...--clear-screen
Rep Aint by clearing rather than scrolling.
-D ...--dumb
Dumb terminal.
-D [XN.N].--COLOR=XN.N
Set screen colors. (MS-DOS only)
-e-e ....--quit-at-eof--quit-at-eof

-F ...--force
Force open non-regular files.
-f ...--quit-if-one-screen
quit if entire file fit s on first screen.
-G ...--hilite-search
Highlight only the last match for searches.
-G ...--hilite-search
Don ' t hig Hlight any matches for searches.
-H [N] ....--max-back-scroll=[n]
Backward scroll limit.
-I.--ignore-case
Ignore case in Searche s that does not contain uppercase.
-I ...--ignore-case
IGNORE case in all searches.
-j [N] .....--jump-target=[n]
screen position of T Arget lines.
-j ...--status-column
Display a status column at the left edge of the screen.
-K [file].--lesskey-file=[file]
Use a Lesskey file.
-K--quit-on-intr
Exit Less in response to ctrl-c.
-L ...--no-lessopen

Ignore the Lessopen environment variable.
-m-m ....--long-prompt--long-prompt
Set prompt style.
-n-n ....--line-numbers--line-numbers
Don t u SE line numbers.
-o [file].--log-file=[file]
Copy to log file (standard input only).
-o [file].--log-file=[file]
Copy To log file (unconditionally overwrite).
-P [pattern]--pattern=[pattern]
Start at pattern (from command line).
-P [prompt]--prompt=[prompt]
Defi Ne new prompt.
-q-q ....--quiet--quiet--silent--silent
Quiet The terminal bell.
-r-r ....--raw-control-chars--raw-co Ntrol-chars
Output "raw" control characters.
-S ...--squeeze-blank-lines
squeeze multiple blank lines.< br>-S ...--chop-long-lines
Chop (truncate) long lines rather than wrapping.

-T [tag]:--tag=[tag]
Find a tag.
-T [Tagsfile]--tag-file=[tagsfile]
Use an alternate tags file.
-U -u ....--underline-special--underline-special
Change handling of backspaces.
-V ...--version
Display The version number of "less".
-W ....--hilite-unread
Highlight First new line after Forward-screen.
-W ...--hilite-unread
Hi Ghlight first new line after any forward movement.
-X [n[,...]]--tabs=[n[,...]
Set tab stops.
-X ...--no-init
Don ' t use termcap init/deinit strings.
-y [N] .....--max-forw-scroll=[n]
Forward SC Roll limit.
-Z [N] ....--window=[n]
Set size of window.

-"[C[c]". --QUOTES=[C[C]]
Set Shell quote characters.
-~ ...--tilde
Don ' t display tildes after end of file.
-# [N] ....--shift=[n]
Horizontal Scroll Amount (0 = one half screen width)
.....--no-keypad
Don ' t send termcap keypad init/deinit strings.
.....--follow-name
The F command changes files if the input file is renamed.

---------------------------------------------------------------------------

Man Command Information page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.