#Linux学习笔记 # Linux online Help document Man page

Source: Internet
Author: User

Man is the abbreviation for manual, which represents the manual page. the Help manual page for the Linux system is stored in sections . The Man manual page is divided into the following chapters.

1 General Commands

2 system calls provided by the kernel

3 Library Calls (C library functions)

4 special files (mostly in the/ dev directory) and devices

5 File format specification

6 games

7 Miscellaneous (and its specifications)

8 system administration commands (usually root privileges required) and daemons

the Linux system displays only a section of the Man manual page. Use the man command to open the Man manual page to specify the chapter number to open, such as the following command to open passwd 5 Chapter Content,

Mans 5 passwd

The contents of the file /etc/passwd, not the command passwd, are displayed. If no chapters are specified , the man command will be looked up in the following chapter lookup order:

1 8 3 2 5 4 9 6 7

Displays the first found chapter content, even if there are multiple chapters (we can, of course, modify the section in the /etc/manpath.config configuration file Options to customize the order in which chapters are found).

In addition, with the whatis command, we can display only The brief information of the required Man manual page. If you simply want to get a brief description of the command LS , use the following command:

Ls

Then you get the output: "list directory contents. "(" Column directory Contents ").

Man manual format:

All man manual pages are organized in the following standard formats:

Name- The manual describes the object names, and a brief description.

Synopsis- Command parameter format, or function call format.

DESCRIPTION- A more detailed description of the narrative object.

EXAMPLES- An example of the use of the digest.

OPTIONS- The meaning of the command line or function call parameter.

Exit STATUS- The meaning of the different return (exit) codes.

Files- documents related to the narrative object.

BUGS- a known bug.

See ALSO- related content list.

AUTHOR, history, copyright, LICENSE, WARRANTY- historical, copyright, editorial information.

Search Man page:

What if we do not know the name of the manual to be consulted? It doesn't matter, we can use the- k or --apropos option to search the relevant manual for a given keyword. For example, to check the manual for the password ("password"):

Keyword search features are generated from a dedicated cache. If you do not have this cache by default, you washes generate this cache by using the following command:

$ mandb

Each time you install a new manpage , you need to run this command before the cache is updated.

Now you can start the search. For example, to check the manual for the password ("password"):

 man-k password

Or:

Mans --apropos password

You can also use the apropos command directly:

$ apropos Password

Keywords can use regular expressions.

Man Display page action ( same as less command)

Cursor Movement Action:

Action commands

Function description

E,^e, J, ^n

Forward line (or N line , for example, first enter 2 and then enter e to forward 2 lines )

Y,^y, K, ^k, ^p

Back row (or N row , Ibid.)

F,^f, ^v, SPACE

Forward a window (or N - line , IBID.)

b,^b, esc-v

Back one window (or N rows , IBID.)

Z

Forward a window

W

Back a window

Esc-space

Forward a window that does not stop at the end of the file

D,^d

Forward half a window

U,^u

Back Half window

esc-), RightArrow

Left Half screen width

esc-(, Leftarrow

Right Half screen width

Find an operation:

Action commands

Function description

/pattern

Look forward to the line that contains the pattern .

? pattern

Finds the line that contains the pattern backwards .

N

Finds the next pattern line .

N

Finds the previous pattern line .

Esc-n

Same as N.

Esc-n

Same N

Esc-u

Cancel highlighting of all searches

Jump Action:

Action commands

Function description

P,%

Jump to the beginning of the file

G,<

Jump to the first line of the file

G,>

Jump to the last line of the file

For A more detailed description of man, please use the command

$manMans

Reference:

Uncle Bird's private cuisine: http://vbird.dic.ksu.edu.tw/linux_basic/0160startlinux_3.php

ArchLinux man page(English)

Wiki: Https://en.wikipedia.org/wiki/Man_page#Repositories_of_manual_pages

#Linux学习笔记 # Linux online Help document Man page

Related Article

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.