Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a System
Setting Up the Online Manpages
Chapter 3 265
Setting Up the Online Manpages
There are three ways to set up online manpages, each resulting in a
different amount of disk usage and having a different response time:
1. Fastest response to the man command (but heaviest disk usage):
Create a formatted version of
all
the manpages. This is a good
method if you have enough disk space to hold the nroff originals and
the formatted pages for the time it takes to finish formatting. To
start the formatting process, enter:
catman
Formatting all the manpages can take some time, so you might want
to run the process at a lower priority.
2. Medium response time to the man command (with medium disk
usage):
Format only heavily used sections of the manpages. To format
selected sections, enter:
catman
sections
where
sections
is one or more logical sections from the HP-UX
Reference, such as 1, 2, 3.
3. Slowest response to the man command (but lightest disk usage):
Do not format any manpages. HP-UX will format each manpage the
first time a user specifies the man command to call up a page. The
formatted version is used in subsequent accesses (only if it is newer
than the unformatted source file).
To improve response time, you can make directories to hold the
formatted manpages. To determine the directory names you need,
check the MANPATH variable. For example, to create directories for the
default /usr/share/man directory, execute the following script:
cd /usr/share/man
mkdir cat1.Z cat1m.Z cat2.Z cat3.Z cat4.Z cat5.Z \
cat6.Z cat7.Z cat8.Z cat9.Z