
man(1) | man(1) |
for one or more of the entries indicated. section corresponds to the section number where the entry appears in the
entry_name Search for a speci®c entry name where entry_name is the name of the manual entry without its
If entry_name is longer than 11 characters, man ®rst searches for the
If section is not speci®ed (see previous argument description), man searches all sections of the manual in order: man1, man2, man1M, man3, man4, man5, man6, man7, man8, man9, manlocal, mannew, manold, then manpublic; and printing the ®rst matching entry it encounters.
If there is more than one manual entry among the sections, the ®rst manual entry is displayed. For example, man intro will display only intro(1). man 4 intro will display intro(4).
If the standard output is a teletype, and if the - ¯ag is not given, man pipes its output through more (see more(1)), with the
File Search Conventions
man searches in several directories, as appropriate, for the speci®ed manual entry. The search continues until either the entry is found or all candidate directories are searched. The ®rst three directories searched, in order, are: /usr/share/man, /usr/contrib/man, and /usr/local/man.
The MANPATH environment variable can be used to specify directories to be searched, and, if set, overrides the default paths given above. Upon logging in, /etc/profile ( or /etc/csh.login ) sets the MANPATH environment variable to default settings. If the ®le /etc/MANPATH exists, the default settings are taken from this ®le. The MANPATH variable follows the same form as the PATH variable (see environ(5)).
Within each of these directories, man searches in the cat∗.Z subdirectories, the man∗.Z subdirec- tories, the cat∗ subdirectories, and the man∗ subdirectories. man∗.Z and man∗ directories contain
If the LANG environment variable is set to any valid language name de®ned by lang(5), and the MAN- PATH variable is not set, or is set to the default directories, man searches in three additional directories for the manual entry before searching in /usr/share/man. First, man searches in
/usr/share/man/$LANG, then in /usr/contrib/man/$LANG, then in /usr/local/man/$LANG. Thus,
If the MANPATH environment variable is set to anything other than the default, the above directories with $LANG as part of the path are not automatically searched. All directories must be explicitly given in MANPATH. The %L, %l, %t, and %c speci®ers can be used as path components to cause
man uses the most recent version that it ®nds in the subdirectories searched. If the most recent version is in:
− 2 − | Section 1−521 |
m