Linux command series man

  

Preface

This series will introduce a series of commands from Linux, but mainly translate the man manual above, give yourself a memory, and also facilitate the collection of other children's shoes.

===================================================== =========================================================== ================================================================= Man command.

man

Users can use this command to query online manuals and display them in a formatted way.

Command Format

man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-Cconfig_file] [-M pathlist] [-P pager] [- S section_list] [section] name...

Command Description

man, which helps the user to display the relevant manual formatted. If the user specifies a section, then man will only show the part of the user's interest. Name indicates the name of the online manual, usually an instruction (such as ls), function (accept) or file (user arbitrarily specified). If the name contains a slash (/), it will be recognized as a path.

Optional Parameters

-Cconfig_file

As the name implies, this parameter specifies the configuration file to be used, by default /etc/man.config.

-M path

is the path used to specify the search path of the query manual. Each path is separated by a colon. If the parameter is empty, the -M parameter is not specified, and the default path search is returned.

-P pager

Specifies the program used to display the page. By default, /usr/bin/less-iRs

-Ssection_list

is specified. The section and order of the search are separated by a semicolon.

-a

By default, man exits after the first online manual is displayed. However, after using this command, man will display all matching online manuals, for example, using the command man -a ls.

-b

Disable any reference to color in the roff source. (Do not translate, ask for explanation ^^)

-c

Allow users Reset the format of the page display.

-d

The actual content of the manual is not displayed and is only used to display information during the search process.

-D

Does not display information during the search process.

-f

is equivalent to the whatis command. Whatis explains the command in a very short language.

-F

Just for formatting, but not for display. (Not very accurate, the original is: Formatonly - do not display.)

-h

Help documentation.

-k

Equivalent to the apropos command

-K

Search for the given string in all online manuals.
-w or --path does not display the user manual, but only prints its corresponding path

Copyright © Windows knowledge All Rights Reserved