man [-acdDfFhkKtwW] [--path] [m system] [-p string] [-C config_file] [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S section list] [section] name…

explain :man yes manual Abbreviation ,man Commands are used to provide online help , adopt man Commands can be viewed Linux The commands in help 、 Profile help 、 Programming help and other information .

(1).section

section

name

explain

1

User command

Instructions that users can operate

2

system call

Functions provided by the kernel

3

C Library function

Common function libraries

4

Equipment and special documents

Usually /dev The files under the

5

File formats and conventions

Explain some documents

6

game

 

7

miscellaneous

For example, the macro command package 、 agreement

8

System management tools

Usually only administrators can use

(2). Options

-C config_file Specifies the configuration file to use man.conf, Default /etc/man.conf

-M path Specify the search path for the online manual , If not specified , Then use the environment variable MANPATH Set up ; If not used MANPATH, Will use /usr/lib/man.conf Settings in ; If MANPATH Is an empty string , The default value is used

-P pager Specify which pager. This option will temporarily override the environment variable MANPATH Set up , Most environmental variables MANPATH Will temporarily override the environment variables PAGER.man By default /usr/bin/less –is.

-B browser Specified in the HTML Which browser to use on the file . This option will temporarily override the environment variable BROWSER.man By default @[email protected]( I don't know how to find out , It could be an environment variable browser)

-H htmlpager Specify one that will HTML The command to render the file as text . This option will temporarily override the environment variable HTMLPAGER.man By default @[email protected]

-S section_list The list of searched chapters is separated by colons , This option will temporarily override the environment variable MANSECT.

-a By default , After the first found page is displayed ,man Will exit . Using this option will force man Show all found pages that match the name , Not just the first page .

-c Keep up-to-date cat page, Also continue to reformat the source manual . This option has special significance when the line book on the screen changes or when the typeset online manual is damaged

-d Don't actually display the online manual , But show debug information

-D Display online manual and debugging information at the same time

-f amount to whatis

-F,--preformat Just format , Do not display the online manual

-h Print help and exit

-k amount to apropos

-K Search all online manuals for the specified string . Warning : It can be very slow ! To specify a section( Area ) It helps .

-m system Specify a set of standby online manuals according to the specified system name

-p string Specified in the nroff and troff Before running the preprocessor sequence . Not all installations have a complete set of preprocessors . Here are some preprocessors and the letters used to specify them :eqn(e),grap(g), pic(p),tbl(t),vgrind(v),refer(r). This option will temporarily override the environment variable MANROFFSEQ.(nroff and troff Is to format the text file to the format required by the printer UNIX command ( And the programs that support them ))

-t Use @[email protected] To format the online manual , Pass the output to [email protected]@ The default output format for is Postscript, see also @[email protected] Manual page of , Learn how to choose an alternative format .

-w,--path Don't actually display the online manual , But print the location of the file that will be formatted or displayed . If no parameters are given : Display... In standard output man List of directories to search .

-W and -w similar , But only one file name per line , No additional information

 (3). example

Search for man All ways to use the command

man -a man

man The command supports up and down , Search for ( Input slash ’/’ Add string ), Withdraw from use q