Will you use the MAN command in Linux?

Source: Internet
Author: User
Tags fam
(1) all the manual pages belong to a specific field and are represented by one character. The most common fields in Linux and their names and descriptions are as follows: Domain name description 1 user command, can be any

(1) all the manual pages belong to a specific field and are represented by one character..

The most common fields in Linux and their names and descriptions are as follows:

Domain name description

1. user commands can be started by anyone.

2. system calls, that is, functions provided by the kernel.

3 routines, that is, library functions.

4 devices, that is, special files under the/dev directory.

5. file format description, for example,/etc/passwd.

6 games, no need to explain!

7 Miscellaneous, such as macro command packages and conventions.

8. the system administrator tool can only be started by the root user.

9 others (Linux-specific) are used to store documents of kernel routines.

N New documents may need to be moved to a more appropriate area.

O old documents may be retained for a period of time.

L local documents related to the specific system.

For example, man ls will have LS (1)

(2) some common parameters and usage of man

Man-a cmd

Open the help with the same name in all fields, such as man fam, you will first enter a fam (1 M) command version fam help, you then press the q key

Will enter FAM (3X), library function version Help

Man-aw cmd

Shows the path of all the cmd manual files, such as man-aw fam.

/Usr/share/man/man1/fam.1m.gz

/Usr/share/man/man3/fam.3x.gz

Man domain code cmd

Directly specify the manual page for search in a specific field, such as man 3 fam.

Man-M cmd

Specify the search path of the manual file, such as man-M/home/mysql/man mysql,

Instead of the help of the old mysql version that comes with the system

Man cmd | col-B> cmd.txt

Output man manual information to a text file

LANG = language code

Man-w cmd

Manpage file path in man-specific language

View the manual page for a specific language version

For example, to view the Chinese man of mplayer

Shell> LANG = zh

Shell> man-w mplayer

/Usr/share/man/zh/man1/mplayer.1.gz

Open a new shell window (or in the original window shell> LANG = en_US.UTF-8)

Shell> man/usr/share/man/zh/man1/mplayer.1.gz

(3) man's configuration file/etc/man. config

If you do not want to use-M to specify the path for man cmd every time, you can modify the configuration file and add the content as shown in

MANPATH/home/mysql/man

Man's Search order in various fields can be modified by modifying

MANSECT 1: 8: 2: 3: 4: 5: 6: 7: 9: tcl: n: l: p: o

Implementation, which is not recommended for modification.

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.