HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
m
man(1) man(1)
man*.Z The manpage is uncompressed, formatted, and displayed. If the
cat*.Z directory
exists, the formatted manpage is compressed and installed in
cat*.Z. If the cat*
directory exists, the formatted manpage is installed in
cat*.
cat*.Z The manpage is uncompressed and displayed.
man* The manpage is formatted, and displayed. If the
cat*.Z directory exists, it is
compressed, and installed in
cat*.Z. If the
cat* directory exists, the formatted
manpage is installed in
cat*.
cat* The manpage is displayed.
If only the cat* or cat*.Z subdirectory is present and/or nroff(1) is not installed, only manpages that
are already formatted can be displayed.
To improve
man performance, you can run the catman(1M) command to create the formatted manpages in
the
cat* directories. Running catman with the default creates the
cat*.Z directories (after removing
any
cat* directories that exist on your system) and also creates the file
/usr/share/lib/whatis
used by the man -k option. If you choose to have the
cat* directories, it would be space-saving to
remove any
cat*.Z directories that may exist on your system. Beware that
man updates both direc-
tories (
cat* and cat*.Z) if they both exist.
Special Manpages
Some situations may require creation of manpages for local use or distribution by third-party software sup-
pliers. The manpage formatting macros have been structured to redefine page footers so that manpages
not originating from Hewlett-Packard Company do not show the HP name in the footer. For more informa-
tion about this change and a description of the manpage formatting macros used with nroff or troff
,
see man(5).
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed. LANG is also used to determine the
search path (as described above).
If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
LANG
for messages, but not for the search path.
If any internationalization variable contains an invalid setting,
man behaves as if all internationalization
variables are set to "C". See environ(5).
MANPATH, if set, gives a list of directories to be searched for the given manpage, replacing the default
paths.
PAGER, if set, defines an output filter to be used instead of more(1) to paginate output.
International Code Set Support
Single- and multibyte character code sets are supported.
EXAMPLES
List the manpages that contain the word
grep in their respective one-line description (NAME) lines:
man -k grep
The output is:
grep, egrep, fgrep (1) - search a file for a pattern
zgrep(1) - search possibly compressed files for a
regular expression
Print the one-line description of the grep(1) manpage:
man -f grep
Print the entire grep(1) manpage:
man grep
Set a search path that includes a path directly below the current directory. The manpage, mypage is
assumed to exist in the directory ./man1 (or ./man1.Z, cat1,orcat1.Z).
HP-UX 11i Version 3: February 2007 − 3 − Hewlett-Packard Company 649