(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.