Linux command series man

Source: Internet
Author: User
Preface this series will introduce a series of linux commands, but it mainly translates the man manual into a memory, which is also convenient for other children's shoes. ==============

Preface

This series will introduce a series of linux commands, but mainly translate the man manual above to give yourself a memory, it is also convenient for other children's shoes to view.

========================================================== ========================================================== ============================================

Part 1 -------- man

First, introduce the man command.

Man

You can use this command to query online manuals and display them in a formatted manner.

Command format

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

Command description

Man to help users display related manuals in a formatted manner. If a section is specified, man only displays the part of the section that the user cares about. Name indicates the name of the online manual. generally, it is a command (such as ls), function (accept), or file (user-specified ). If the name contains a slash (/), it is considered as a path.

Optional parameter

-Cconfig_file

As the name suggests, this parameter is used to specify the configuration file to be used, which is/etc/man. config by default.

-M path

That is, the path used to specify the search path for the query Manual. Each path is separated by a colon. If this parameter is null, the-M parameter is not specified, and the default path is returned.

-P pager

Specifies the program used to display the page. the default value is/usr/bin/less-iRs.

-Ssection_list

Specifies the section and sequence of the search, separated by semicolons.

-

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)

-C

Allows users to reset the display format of the page.

-D

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

-D

The information in the search process is not displayed.

-F

Equivalent to the whatis command. Whatis provides a brief explanation of the command.

-F

Only used for formatting, but not displaying. (Not accurate. The original article is: Formatonly-do not display .)

-H

Help documentation.

-K

Equivalent to the apropos command

-K

Search for a given string in all online manuals.

-W or -- path does not display the user manual, but only prints the corresponding path

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.